Question 2
cat club_members names | sort > s1
Question 3
cat club_members names | sort -r > s2
Question 4
cat club_members | sort -n -k 5 > s3
Question 5
cat /etc/passwd | sort -n -k 3 -t : > s4
Question 6
cat /usr/share/dict/words | grep wta
Question 7
grep 'x' /usr/share/dict/words | wc –w
Question 8
grep -n -v nologin /etc/passwd > s5
Question 9
ls -l /etc | grep Aug > s6
Question 10
ls -l /etc/ | sort -k 5,5 -nr | grep Jun > s7
Question 11 (Failure but does the job)
find /var -user root > s8
Question 12 (Failure but does the job)
find /etc -name *.conf > s9
Question 13
find /home/demo -newer s1 | tee /var/tmp/t1
Question 14
Find /etc/ -size +1024kb > s10
Question 15
Find /usr/include –type f –name ‘s*’ –size -25 –exec cp {} /home/demo/smallc \;
Tutorial 5 All answers
Moderator: drgrussell
Re: Tutorial 5 All answers
Could you please provide explanation for each answer, or a link to the section of tutorials that explains this sections?
Who is online
Users browsing this forum: No registered users and 2 guests