Question: Create a Bash login file with the following settings # Display the following system information The command last shows listing of last logged in users.
Create a Bash login file with the following settings
# Display the following system information
The command last shows listing of last logged in users.
The command logname print the users login name
If you combine the commands last with logname (last `logname`), it displays the listing of the last logged in for the user
To get the users last 3 logins, you can use the command: last `logname` | head -3
The users command display a one-line list of users currently logged in
Use the above command to display the following system information:
Last three logins:
Current users:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
