1. What are the commands with R parameters now?
Cp-r
Rm-rf
Ls-r
2. Colleagues said, open the Computer XXX Service Web interface, which of the several ways you think you can try to know?
Ifconfig--Find IP
Ps-ef|grep xxx--Find PID
Netstat-nlp|grep PID--Find port
PS can also view the path address of the XXX service, locate the configuration file, view the configuration file
3.MV and CP who fast
MV Fast
4. Personal environment variable file where, general what file, what command to view, how to take effect
~/.bash_profile
More ~/.bash_profile View
SOURCE ~/.bash_profile or. ~/.bash_profile Effective
5. Expanded thinking: If, Jepson's home directory We need to change to/usr/local/mysql directory, then how to modify? (I only show you a configuration file, and use the command to modify the next lesson)
VI/ETC/PASSWD changed/home/jepson to/usr/local/mysql
or usermod-d/usr/local/mysql Jepson change
6. Then, after the home directory changes, the new home directory, no environment variable file, what should we do
Either from the original home directory CP or manually created.
What is the 7.VI editing process?
I--Enter edit mode
ESC--Exit Edit
: Wq--Save exit
: q! --Do not save exit
8. Switch User what command, usually with what parameters
Su-xxx
9. What do ordinary users want to do with temporary root privileges?
Sudo
10. In which configuration file modification
/etc/sudoers
11. Append and overwrite what are the symbols respectively
1 >>--Append
2 >--Coverage
12. View the contents of the file in real time
Tail-f
Tail-f
13. A server, XXX name-related processes all kill the process is what
Kill-9 $ (pgrep-f xxx)
20180504 Morning Lesson Records 03-linux