1. What do you think is the way to create files?
VI or VIM
Touch
Other redirects
2. View a file ls and ll results what's different?
LS displays only a list of names, ll show permissions, time, size and other file details
3. What is the identity of the hidden file? How to view
. Start Ls-a View
4. View which two commands of a file size
Ll-h
Du-sh
What are the three modes of 5.VI?
Command mode, edit mode, tail line mode
6. Explain how I use the VI command to empty a file
GG DG
7. What are the commands for the user and user group of the file?
User Group
8. Execute permissions on a file, what is the command
chmod +x xxx.sh
9. I want to compress xxx.log files into xxx.tar.gz
TAR-CVF xxx.tar.gz Xxx.log
10. Move, copy the file commands
MV CP
11. Do you think that the above two commands can be used to change the name of the need?
MV can change the name, CP can be copied after the file name of the original file will not be changed
12. Extension questions: What is a soft connection and a hard link? (go to the data test yourself)
A soft link can be thought of as a shortcut in Windows that lets you quickly link to a target file or directory.
Hard links generate new files through the inode of the file system, rather than generating new files.
To create a method:
Soft link (symbolic link) ln-s source target
Hard link (entity link) ln source target
20180515 Morning Lesson Records 10-linux