UNIX Test PDF
UNIX Test PDF
18 What is the command to search all files in your current directory for the word "plasmodium"?
a
grep plasmodium *
b
find plasmodium -all
c
lookup plasmodium *
19 How do you print the first 15 lines of all files ending by ".txt"?
a
print 15 .txt
b
cat *.txt -length=15
c
head -15 *.txt
20 Count the files you own in all your directories.
a
ls -lR | grep myusername | wc -l
b
ls -a | cnt *
c
ls -n ~myusername