Linux Study Notes - Part 3
(Again: this note is only used as a learning record and reference)
concept:
Relative paths: paths that depend on the current file or directory
Absolute paths: paths that depend on the root directory
Command:
cd: Change the directory where the user is located, which can only be followed by the directory name
pwd: Display the current directory (Note: '.' means the current directory, '..' means the previous directory of the current directory)
mkdir(make directory): create directory: {
-m: used to specify the permissions of the directory to be created
-p: create cascading directories
}
ls : {
-d: For a directory, the files and subdirectories in the directory can be not displayed.
}
rmdir (remove directory): remove empty directories
rm:{
-r: similar to rmdir, but can remove non-empty directories
-f: Indicates forced deletion, without asking whether to delete, delete directly, very just
}
which: find the absolute path of a command
A little progress a day, if there are mistakes, please point out, thank you.