Experimental Report 5: Linux file and directory management 2 (ultra-detailed version)

Experiment 1 copy, delete and move

Purpose: to master cp, rm, mv usage of

Experimental requirements:

1. Copy as root .bashrc main folder to the next / tmp, renamed bashrc.

2 Change directory to / tmp, and / var / log / wtmp copied to / tmp and observed properties:

3 copy all the contents of / etc / directory to / tmp under

4 1 title copied bashrc file to establish a link (symbolic link)

5. Copy the master directory to .bash_history .bashrc and / underneath tmp.

6 created in the previous topic bashrc deleted.

7 The third question established in the / tmp / etc / directory deleted!

8 Repeat 1 title created in tmp in a bashrc file, create a directory mvtest, move the file to the directory.

 

 9 9 title in just the directory name renamed mvtest2.

10 using the same method as in Item 9 and then creates two files bashrc1 bashrc2, to then move all of / tmp / mvtest2 which

Experiment 2 File Content Access

Purpose: to master cat, tac, nl, more, less, head, tail usage

Experimental requirements:

  1. Check / etc / issue the contents of this file and line numbers.
  2. The complete contents /etc/grub.conf displayed (special characters)
  3. Reverse View / etc / issue this document.
  4. Listed in / etc / issue of content with nl, and let the auto-fill on the front line number 0.
  5. More familiar and less usage and view /ect/man.config the contents inside, and some know-how are more and less relevant buttons and commands.
  6. 20 rows /ect/man.config contents inside the front display.      
  7. If the data is not 100 lines of print, print only the / etc / man.config first few lines, how to command?
  8. If you do not know the / etc / man.config a few lines after the 100 rows of data, but only want to list.
发布了165 篇原创文章 · 获赞 436 · 访问量 11万+

Guess you like

Origin blog.csdn.net/weixin_44015669/article/details/104095174