tailieunhanh - The CLI Interface

In this lab, the student will navigate the Linux file system. The student will learn how to use the navigation tools provided by Linux to locate files and folders. This lab covers he following commands: | Lab The CLI Interface Estimated Time 15 minutes Objective In this lab the student will navigate the Linux file system. The student will learn how to use the navigation tools provided by Linux to locate files and folders. This lab covers he following commands cd ls pwd cal date Equipment The following equipment is required for this exercise A computer with Linux Red Hat operating system installed. Scenario The student is setting up a new computer for a user. Before the user can have the new computer some directories and files need to be created that the user will need. Procedure Using this new computer that has the Linux operating system installed on it the student will navigate through the file system and locate the user s home directory. The student will also use the file system to navigate through and check to make sure that the necessary directories are in place. 1 - 5 IT Essentials II - Lab Copyright 2002 Cisco Systems Inc. Step 1 The ls pwd and cd Commands 1. Login as the root user. 2. At the command line type ls This will display the contents of the root s home directory. In the space below list the contents of this directory. 3. From within the root s home directory type cd . Press the Enter key. Make sure to include a space between the cd and the . . The cd . command moves the users up one directory. The parent directory of the root s home directory is the root of the Linux directory structure. Although the and the root directory sound the same they are two entirely different directories. The is the highest level you can go in the Linux directory system. The root is the home directory for the root user. 4. From the type ls Press the Enter key. This will display the contents of the directory. In the space below list the directories just below the root . Example rootSsystemñl Is in dev hone lib RISC opt root tup var oot etc ĩnitrd lost Tocnd Rnt proc sb in usr rootSsystemñl I The contents of the directory should look similar to the .

TỪ KHÓA LIÊN QUAN