1. What is the command to move a file or folder?
Mv
2. What are the command parameters for copying a file or folder?
Cp
3. Forcing the deletion of a file's command parameters
Rm-r
4. Force delete a folder's command parameters
Rm-rf
5. Is the production capable of performing RM-RF/
No
6. Switch User's command parameters with execution environment variable file and into home directory
Su-xxx
7. Ordinary users want to temporarily get root maximum permissions, modify which file
/etc/sudoers
8. View command Help
--help or man xxx
9. View historical commands and execute 55 lines
History! 55
10. Create an empty File command
Touch xxx
11. Commands for creating folders
Mkdir
12. What are the parameters for creating a cascading folder
Mkdir-p
13. View commands for processes running in the background
Ps-ef
14. Kill a Process
Kill-9 PID
15. View the port number command for this process 955
Netatat-nlp|grep 955
16. How to set a temporary alias
Alias
17. Set the variable key= value, is that right?
No, there's no space.
18. Environment variable files are divided into global and individual, then where and how to take effect
Global:/etc/profile Execution Source/etc/profile effective
Personal: ~/.bash_profile or ~/.BASHRC execute source ~/.bash_profile effective
19. What are the commands for viewing the contents of a file
Cat
More
Less
Tail
20. What does the hidden file begin with?
.
What is the difference between 21.tail-f and-F?
Tail-f is equivalent to--follow=descriptor, tracking according to the file descriptor, when the file is renamed or deleted, the trace stops
Tail-f is equivalent to--follow=name--retry, tracked according to the file name, and remains retried, that is, after the file has been deleted or renamed, if you create the same file name again, you will continue to track
22. If a xxx, to kill all processes related to XXX, then we do the first step? What's the second step?
First step ps-ef|grep XXX view
The second kill-9 PID kill
23. Create a user command
Useradd
24. Create a command for a user group
Groupadd
25. What are the profiles of users and user groups?
/etc/passwd
/etc/group
26. General view of the user's situation, using the ID ruoze, then how to say Bigdata user group added to Ruoze
Usermod-a-G Bigdata ruoze
27. command to set a password
passwd xxx
28. What symbol is a pipe character
|
29. View the current machine's IP command (Linux)
Ifconfig
30. Say VI, how to edit a file input, and then save the exit
I--Enter edit mode
ESC--Exit Edit
: Wq--Save exit
20180503 Morning Lesson Records 02-linux