Netw240 Week 2 Lab

Only available on StudyMode
  • Topic: File system, Ls, Control key
  • Pages : 9 (1405 words )
  • Download(s) : 108
  • Published : March 27, 2013
Open Document
Text Preview
NETW240 Week 2 Lab: Basic Linux Commands and Directories

Lab Scenario

Launching Your Lab

The status of your lab is displayed at the top of the left navigation column.

Click the Start Lab Now button. A progress bar displays while the lab is being initialized. During this time you can view items under the Content area of the left navigation bar.

When initialization is complete, the status changes to In Progress. The clock starts and a lab diagram displays in the main content area.

Click on the diagram that appears, and your virtual lab experience will begin.

If your connection isn't working, verify connectivity by clicking Verify Connection in the Tools section on the left navigation bar.

Assignment

* Identify the difference between a casual user and the superuser (or root) by examining the shell prompt. * Illustrate the command used to switch from a casual user to the superuser. * Diagram, label, and describe the major system directories beneath root (/). * Illustrate the use of basic Linux shell commands to move around in the hierarchical file system.

Diagram

Lab Tasks

See Chapter 3, The Linux File System.

Note about text editors in Element K: All text editor tasks in this lab are shown using the nano text editor, but you are also free to use the vi text editor as an option if you know the more complex command hierarchy. If you are using nano as your text editor and Internet Explorer or Chrome as your browser, you cannot use Ctrl-O to save your file. This hot key is used by IE and Chrome to open files. You will have to exit and save as follows: Press Ctrl-X (Exit); at the prompt “Save Modified Buffer,” press Y then Enter. This will save the file and exit the text editor. Mozilla Firefox does not have this issue with Ctrl-O.|

Step 1: Procedures

If you are not already logged in, please log in as a standard user. Your login name will be student or vlab with the password password.
1. Click on Applications > System Tools > Terminal. This will bring up a Terminal screen for you so you can apply the commands in this lab.

2. Using the "switch user" (su) command, switch from standard user mode to the superuser (root) user mode. The root password is the same as the student password.

3. During the lab, you will be asked to enter answer to questions asked in your lab activities. You need to enter the answers to these labs at the bottom of this lab page and submit that to your course shell Dropbox in order to receive credit for it.

Step 2: File System Navigation

1: Display a long listing of the filesystem root ( ⁄ ).

Enter ls –l.

Verify the output is in a long list format.

2: Display a long listing of the ⁄etc directory.

Enter ls -l ⁄etc.

Verify that the output is from the ⁄etc directory and is a long list.

What type of files may you find in this directory? Write your answer in the answer sheet at the bottom of this lab.

3: Display a long listing of the ⁄bin directory.

Enter ls -l ⁄bin.

Verify that the output is from the ⁄bin directory and is a long list. What type of files may you find in this directory? Write your answer in the answer sheet at the bottom of this lab.

4: Display a long listing of the ⁄sbin directory.

Enter ls -l ⁄sbin.

Verify that the output is from the ⁄sbin directory and is a long list.

What type of files may you find in this directory?

Write your answer in the lab report document.

5: Display a long listing of the ⁄dev directory.

Enter ls -l ⁄dev.

Verify that the output is from the ⁄dev directory and is a long list.

What type of files may you find in this directory?

What is this directory used for?

Write your answers in the lab report document.

6: Display a long listing of the ⁄usr directory....
tracking img