Question: 1 1 . execute the following: ps ef | more The | is a pipe symbol which pipes the first command into the second command.
execute the following: ps ef more
The is a pipe symbol which pipes the first command into the second command.
Execute the following:
a cd ~
b touch test
c ls al What did touch do run manpage on it and explain: man touch
cp test testThis should copy test to test
cat etcservices myservices What does cat do
cat myservices
diff etcservices myservices This should print no output as they are the same
a diff etcservices homeuseridmyservices Where userid is your userid
b diff etcservices ~myservices
cd usr
a pwd What directory are you in
b cd ~
c pwd And now?
execute the following:
a cd ~
b cat etchosts difffile
c cat etcresolvconf difffile
d cat difffile
e diff etchosts difffile
f diff etcresolvconf difffile
cp etchosts difffile Should overwrite difffile
grep http etcservices
a grep http myservices Remember we did a cat and replicate the file in our home dir
b grep http etcservwe could use as a wildcard
echo This was a fun assignment
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
