LINUX
Lab Exercises for Lesson 10Intro:The lab for this lesson will introduce the Linux communicationutilities. To begin the lab, please use the script command torecord your session. Activity 1: whoThe who utility can be used to quickly determine who islogged into the system. Run the following command:$ whoIn addition to showing who is logged in, the who commandcan also be used to show the mesg status of each user aswell as headers and several other pieces of information. Use theman page to learn how to run the who command and displayheadings, system boot time, and user message status. Hint: someoptions may disable the default action of showing users; be sureyou provide this option as well!Activity 2: wThe w command provides similar functionality to the whocommand, but provides additional information/options. Run the wcommand with no options:$ wPull up the man page for the w command and learn how toforce the w command to enable the short version of outputas well as suppress display of headers.Activity 3: fingerThe finger utility can be used to gather a great deal ofinformation about another user. Use the who command to determinewho is online and run the finger command on at least twousers.Using the man page, run the finger command with theoption to prevent matching user names.Activity 4: writeThe write command can be used to send a message toanother user. Users can disable messages viathe mesg command. Use the who command withthe -T option to get a list of users who are online, andtheir message status. Next use the following command to get a listof what each user is doing:$ w | sortFind a user who is NOT in the middle of something else (e.g., theyare only running bash) and who has messages enabled.Use write to send the user a message.Next, disable messages via the mesg command:$ mesg nTry to write to a different user. Take note of the errormessage you receive.
LINUX Lab Exercises for Lesson 10 Intro: The lab for this lesson will introduce the Linux communication utilities. To b
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am