Question: 1 1 . execute the following: ps ef | more The | is a pipe symbol which pipes the first command into the second command.

11. execute the following: ps ef | more
The | is a pipe symbol which pipes the first command into the second command.
12. Execute the following:
a. cd ~
b. touch test
c. ls al (What did touch do? run manpage on it and explain: man touch)
13. cp test test2(This should copy test to test2)
14. cat /etc/services > myservices (What does cat do?)
cat myservices
15. diff /etc/services myservices (This should print no output as they are the same)
a. diff /etc/services /home/userid/myservices (Where userid is your userid)
b. diff /etc/services ~/myservices
16. cd /usr
a. pwd (What directory are you in?)
b. cd ~
c. pwd (And now?)
17. execute the following:
a. cd ~
b. cat /etc/hosts > difffile
c. cat /etc/resolv.conf >> difffile
d. cat difffile
e. diff /etc/hosts difffile
f. diff /etc/resolv.conf difffile
18. cp /etc/hosts difffile (Should overwrite difffile)
19. grep http /etc/services
a. grep http myservices (Remember we did a cat and replicate the file in our home dir)
b. grep http /etc/serv*(we could use * as a wildcard)
20. echo This was a fun assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!