a) In the following Unix directory structure let the current directory be, loc.
ID: 3754475 • Letter: A
Question
a) In the following Unix directory structure let the current directory be, loc. Present a Ur command to go to the directory bin If the current directory is etc, present command to switch to the directory lib. b) etc lib The command who prints the following information. jake charlie william janet pts/2 Feb 15 15:27 (jake.cs.bowiestate.edu) pts/4 Feb 12 17:07 (Charlie.fios.verizon.net) pts/3 Feb 14 10:38 (william.cs.bowiestate.edu) pts/42 Jan 31 18:33 (janet.ipt.aol.com) nd? What is the output of the following comma who I grep "ja" I sort If the who command has the same users given question 3, what is the output of the following statement? 8. who users; grep "ja" users; to sea 8 9 0 6 7 5 E RTYUOExplanation / Answer
Solution :-
7)
who | grep "ja" | sort
jake pts/2 Feb 15 15:27 (jake.cs.bowiestate.edu)
janet pts/42 Feb 31 18:33 (janet.ipt.aol.com)
Explanation :-
First the output of who is redirected and then using grep we are searching for a "ja" pattern and then the output is send to the sort command where it will sort alphabetically.the given above sequence will be the actual output of the command.
Please upvote my answer :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.