Shell Linux system commonly used commands
Learning: An instruction function according to classification learning and memory, master and common parameters common commands
First, the file system operations related commands
- pwd: print working directory, print the current working directory
- cd: change directory, change the current working directory
- mkdir :: make directory, create a folder
- rmdir: remove directory, delete empty folders, you can use rm -rf delete any folder
- rename: Rename the file with three parameters
- mv: move, move files
- chmod: permission attribute change mode, modify the file
- chown: change ownership, the owner of the property to modify the file
- ls: List list, print file information, common parameters -a (view all files, including hidden files (files that start with numbers).) and -l
- rm: remove, delete files ordinary, common parameters -f and -r
- truncale: cutting file, commonly used parameters -s
- vi / vim: Linux system comes with a file editor
- touch: time to modify the file attributes
- man: manual, manual
Second, note
Each command
+ Space command name (may be a plurality of write) command + parameter (0 or more, one or more spaces between parameter)
File path written in the form
~ Represents the current user's home directory
/ Represents the root directory
Absolute path: Targeting based on the root directory
Relative path: positioning based on the current directory, a dot represents the current directory, two dots (...) indicates the parent directory of the current directory (.)
Teacher to explain the code example: [root @ hostname usr] cd ./.../..././.../././ * The end result is the root directory
Linux systems philosophy
- No news is good news
- In the linux world, there is a problem to find a "man"
Third, the personal words
For the first time into the blog, novice junior, now we are not entry, all learning process.