ls command
ls command is a list of abbreviations used to print a list of the current directory.The command format is: ls [options] [directory name]
parameter | description |
---|---|
-a | -all to list all files in the directory, including the beginning. The hidden files |
-l | In addition to the file name, the authority will file owner, file size and other information listed |
-h | -human-readable format readily appreciated listed in the file size (e.g., 1k 234M 3G) |
-t | To sort file modification time |
cd command
cd: change directory of abbreviations: Change directory to the directory specified by the current.Syntax: cd [directory name]
1 into the root directory of the current directory system: cd /
-bash-4.2# pwd
/root/test
-bash-4.2# cd /
-bash-4.2# pwd
/
-bash-4.2#
2. Go to the parent directory from the current directory: cd ...
-bash-4.2# pwd
/root/test/AAA
-bash-4.2# cd ..
-bash-4.2# pwd
/root/test
-bash-4.2#
3 into the main directory of the current directory: cd ~
~表示当前用户主目录,它与系统根目录不是同一个概念
-bash-4.2# pwd
/root/test
-bash-4.2# cd ~
-bash-4.2# pwd
/root
-bash-4.2#
4. Go to the directory where the last time from the current directory: cd -
-bash-4.2# pwd
/root/test/AAA
-bash-4.2# cd /
-bash-4.2# pwd
/
-bash-4.2# cd -
/root/test/AAA
pwd command
pwd命令是用来查看当前目录的完整路径的
Questions
this is to use the pwd command, it appears as zhou, but if you create a file in this directory, it will display the directory has been removed.