1. Enter the directory two levels up from the current directory
2. Enter the user's home directory, create a new file file in the directory, a three-level directory fd/fd2/fd3
Enter the home directory
Create a file
Create a multi-level directory
1) The long format information displays the information of the directory fd3 (not the content in the browse directory), indicating the permissions of the directory
Example result
rwx owner user permission to read, write and execute
rx group member permissions are readable and executable
rx Other user rights are readable and executable
2) Move the fd3 directory to the fd directory
3) Pack the contents of the fd2 directory, and the result is named fd2.tar and stored in the fd directory
4) Create a new directory fdfile under the fd directory, and extract fd2.tar to the fdfile directory
Create the fdfile directory
Unzip fd2.tar to the fdfile directory
5) Create a new hidden file .myhide in the fd3 directory, the new file name is 1-9 numbers, and .mp3 is the suffix file
Create hidden files
Create files in batch
6) Write content in the hidden file .myhide, and create a hard link hfile of the file in the fd subdirectory fd2
Write content to hidden files
Create hard link
7) Delete all files in the fd3 directory, but do not delete the directory itself
Delete all files except hidden files
Delete hidden files
3. Save the line containing root in the /etc/passwd file to the test.info file in the home directory
Enter the home directory
Create test.info file
Copy information to test.info
4. Copy /etc/passwd to the current home directory, write your name in the first line, keep the first 5 lines, and delete the other lines. Edit the copy file with the vi editor, and replace the root of the full text with SUPER