1. Commands with small R parameters
Cp-r
Rm-rf
Ls-r
2. Commands with R parameters
Chown chmod
3.MV CP who fast
Mv
4. View commands help What do you think?
XXX--help
See Usage first
5. What should I do if the leader asks you to open the Web interface of the computer XXX service?
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
6. Expansion problem: We found a user, login can not, or SU also can not switch, said the user can not log in, we want to modify what files, what will be modified what?
Change/etc/passwd/sbin/nologin to/bin/bash
7. What is a multi-person session command? Create, enter, exit, view what parameters to separate
Screen
Screen-s xxx
Screen-r xxx
Ctrl+a+d
Screen-list
8. Run a script every five minutes, ask what command to edit, what command line
CRONTAB-E /5 * XXX
9. Cascading create folders, commands, and parameters
Mkdir-p
10. What are the two types of environment variable files, and where, respectively, how to take effect
Global:/etc/profile
Personal: ~/.bash_profile
Source in effect
11. Hide the file what identifies the start, what command parameters to view
. Opening Ls-a View
12. Scenario Title: A computer has a component only know the name XXX middle three letters, how do you find it
Find/-name xxx
13.which This command, is to find the command, ask is from which inside find
PATH environment variable
14.tar decompression, what problems will generally occur?
User and user groups are not
15. View the size of the file two commands
LS-LH Du-sh
16. View the folder size, which command?
Du-sh
20180508 Morning Lesson Records 05-linux