What is 1.PWD?
Displays the absolute path where you are currently
2. What is the difference between absolute and relative paths
Absolute path is starting from/directory
Relative paths are relative to where they are today
3. Switch to the previous command
CD-
4. Switch to the previous level command
Cd..
5. Switch to home directory which commands
CD CD ~
6. Create a file, what commands do you think can
VI or VIM
Touch
Other redirects
7. What are the commands and cascading creation parameters for creating a folder?
Mkdir-p
8. Check the command help, we want to see what the first line
Usage
9. Historical command and execution 55 lines
History!55
10. Do a bad thing, empty your history command, which file
. bash_history
11. Force delete a Folder command
Rm-rf
12.which xxx, then find xxx is actually from which environment variable to look for
PATH
13. Current directory search only remember the name has XXX file
Find./-name "xxx"
14. See what the process number and port number commands are
Ps-ef | grep xxx
NETSTAT-NLP |grep XXX
15. command to kill a process
Kill-9 PID
16. Machine card, which command to see which process consumes large resources
Top
17. How much memory and disk commands
Free-m
Df-h
How many 18.rwx numbers
421
19. Modify the commands for users and user groups
Chown
What are the 20.tar decompression and compression parameters?
-xzvf-cvf
21.screen tell me about your understanding.
Set up a reply
22. What is the global environment variable and the personal environment variable file, and what is the effective command?
Global/etc/profile Source/etc/profile in effect
Personal ~/.bash_profile Source ~/.bash_profile effective
20180608 Morning Lesson Records 27-linux