CST 126 - Lab 2 (Chapters 2) Name: Date: Learning Objectives 1. To learn command structure and syntax. 2. To practice the use of a few commonly used UNIX commands. 3. To work with the shell. Lab Work 1. Log on to your UNIX system if you are not already logged on. 2. In the exercises below, what you type-in at the UNIX command line is shown in Courier font after the $ prompt. Your task is to identify the command tokens based on the following strategy. In the following commands, identify the parts of the single UNIX command presented by printing the letters C (for Command), O (for Option), OA (for Option Argument), and CA (for Command Argument) directly over the command line, such as: C OOA O OA CA Answer Sample - $ lpr –Pspr –n 3 proposal.ps Command line 1. $ ls -la convert.txt 2. $ more convert.txt 3. $ pwd 4. $ cat file1 file2 file3 5. $ rm -r temp 6. $ ping –c 3 delta.edu 7. $ chmod u+rw file1.c 3. Use the who command to display the names of users currently using Delta’s Linux system. a. How many users are currently using (logged onto) the system? b. Write the line related to your login here. c. Who has been logged on for the longest period of time and for how long? Write down the time and date since when this user has been logged on. 4. Use the date command to display the current time. Cut and paste or write the output from the command below: 5. Use the pwd command to display the name of your home directory. Write down the directory path. 6. Use the following commands to display information about your computer system: uname (to display the name of the operating system), uname –n (to display the domain name of your system), and uname –p (to display the name of the CPU in your system). Show your sessions in your answers. Write the answers for each question. a. What is the name of your operating system? b. What is the domain name of your computer system? c. What CPU is in your computer system? 7. Use the ps -ef command to display system processes. Find the process specific to your login and write that line here: 8. The following commands are introduced in Chapter 2 of your text. Run the commands and provide a brief description of the purpose of each command in the following table: Command Description whoami date hostname clear cal ps ls who more wc sh history alias unalias pwd mkdir cd head tail cat cp rm lp lpr man mv Logoff.
Pages to are hidden for
"cst126 lab02"Please download to view full document