$29
Introduction
During this hands-on project, you will login to a Linux workstation, use a few commands, and generally start to get comfortable on a Linux system. The purpose of this lab is experimental: try the commands; try to figure out what they do; and try looking them up in the textbook, the videos provided on Blackboard, or online. This assignment will be much easier if you read Chapter 1 from the textbook first!
Getting Started with Linux
Log in to your Linux machine and open a terminal window.
Create a file named assignment_1 in your home directory by using the script utility. The script utility captures your session. This means that the system will start “recording” all your input and output into a file named assignment_1. In other words, it will create the file, assignment_1, to submit for this assignment.
Type stty -a to see a list of all the attributes of your terminal.
Issue a Linux command to show your username.
Issue a Linux command to show information about users who are currently logged in to your system.
Issue the command w to show who is logged on to your system and what they are doing.
Issue a Linux command to show the ID number of the terminal that you are using.
Issue a Linux command to show the full path name of your home directory.
Issue a Linux command to show your user ID (only your user id, nothing else should show up).
Issue a Linux command to show all users who are currently logged in, use the utility that displays the user’s name.
Exit from the script utility.
Lookup the man pages of the commands and utilities that you will need to do the following steps in order to find the right option. Do not show the man page in the script output file (look up the man page before starting script as instructed below).
Start the script utility again, make sure to append to the same file assignment_1 so you do not lose your previous work.
Use one command to show the calendar for the previous month, current month, and next month.
Start the calculator and show the result of the division problem: 1 / 3, show the result with 2 digits after the decimal point.
Show the current date and time.
Make a directory named CS_221.
Change your working directory to CS_221.
Create three new directories named Assignments, Examples, and Web.
Show a listing of the current working directory, use an option of the list command so you can see what file type each file is, but do not use the long listing option.
Change the permissions of the directory Web to -rwx r-x r-x.
Change your working directory to Examples.
Without using an editor, create a new, empty text file called temp1.
Check the permissions.
Change the permissions of temp1 to –rw-r--r--.
Copy temp1 to a file called temp2.
Create a directory named Temps.
Move the file temp2 to the directory Temps and rename it temp.
Change working directory to Temps and check permissions.
Move up one directory.
Remove the directory Temps and its contents.
Without changing directory, do a listing of the root directory, use an option of the list command so you can see what file type each file is, but do not use the long listing option.
Look up the man page of the print utility and find the option to change your username (your login id) to FirstName_LastName (note the underscore between the 2 names) when printing the hard copy. Then print a hardcopy of assignment_1, using the correct option so your FirstName_LastName is shown on the cover page.
Exit from the script.
Submission Instructions
Submit your assignment_1 file on Blackboard.