You are on page 1of 1

Q.

cd ../../bin|ls

Q.2

cd ../..|ls -a

Q.3

ls r*

Q.4

ls ???

Q.5

ls *.doc

Q.6

ls [l-s]*

Q.7

ls -d */

Q.8

cat > text1

Q.9

cp text1 text2

Q.10
Q.11

cat text2 >> text1


ls -l >b |nl b > c |cat c

Q.12 ls -l | tee tmp


Q.13

tail -n +10 sample

Q.14

who

Q.15

rm tmp*

Q.16

a
b
c
d
e
f

nl employee.txt
sort -t ":" -k2 employee.txt
sort -t ":" -k4nr employee.txt|head -3
sort -t ":" -k1 employee.txt| uniq | cat > user
cut -d ":" -f1,6 employee.txt
sort -t ":" -k4nr employee.txt

You might also like