Third experiment Linux file management

Purpose:

1, grasp the basic principles of content and document management;

2, understand the files and directories operating system calls the user interface;

Experimental requirements Experiment:

Familiar with Linux file directory management functions of the various commands

experiment procedure:

1, log in as root account to the terminal, use the pwd command to view the current directory

      

2, using the cd command to switch to the current directory "/" directory

       

3, use ls explicitly to view the directory structure of Linux, to understand each directory for the file system-related

      

4, the use of cat, more, head, tail and other display commands / etc / inittab file content

      

      

      

      

5, using the grep command to query the "initdefault" string in the / etc / inittab file

      

6, use the find command to find all files that start with the main / directory

      

7, the cp command inittab files in the / etc directory are copied to the / root directory

      

8, using the sort and outputs the result to the command uniq inittab file sorted in the / root directory

      

      

9, byte counts inittab file, the number of lines, words

       

10, create a test directory in the / root directory with the command mkdir

         

11, with the cp command to copy the / etc directory and all its contents to the test directory 

        

12, using cd and ls look under / root / test / etc

         

13, the test directory renamed test2

         

14, delete test2

        

Experimental Summary:

Through this experiment made me more interested in the Linux system more. Linux system file names are case-sensitive, and different Linux and Windows file types file types in Windows may be able to determine the type of file based on the file extension. However, a file can be executed in Linux and extension is not much relationship, mainly related to the properties file. Linux several common file types: regular files, directories, links, files, device files, documents and other pipelines.

发布了8 篇原创文章 · 获赞 6 · 访问量 2575

Guess you like

Origin blog.csdn.net/qq_40344815/article/details/78238881