Question: Write down the commands that can do the following tasks: a) Print the list of all users to a file named userlist Hint: 'who' and
Write down the commands that can do the following tasks: a) Print the list of all users to a file named "userlist" Hint: 'who' and redirection b) Print out the line that contains your username in the file "userlist" to the terminal Hint 1: grep and Hint 2: or you can: cat + pipeline + grep Print out the line that contains your usemame in the file "userlist" to a file named"my, user" Hint: Same commands, but has additional Result: [nhdogh2 Lab4js cat my_ user nhdo e) pts/o Feb 4 01:33 (75-112-247-32.res.bhn.net) d) Append the line that contains another person's username of your choice from the file "userlist" to 4Hint: Same commands, but has additional the file "my user Result: [nhdo h2 Lab4)s cat my user nhdo sarforst pts/4 Feb 4 01:33 (75-112-247-32.res.bhn.net) Feb 3 09:07 (ccsrvl.psych.indiana.edu) pts/o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
