1. Directory structure
------------------------------
/root directory
~ Current User Home Directory
. Current directory
.. Top level Directory
[Email protected]/]#
--------------------------------
Chestnuts:
[[email protected] ~]$ #刚进入用户终端Terminal, Saber on behalf of ordinary users, localhost for native, ~ represents the current user home directory
[[Email protected] ~]$ CD. #当前目录用. [Email protected] ~]$ Pwd/home/saber[[email protected] ~]$ CD . #上一级目录目录: [Email protected] home]$ Pwd/home[[email protected] home]$ CD ~ #当前用户主目录 ~[[email protected] ~]$ pwd/home/ Saber[[email protected] ~]$ su #进入root管理员权限, but the directory does not change Password: [[email protected] saber]# CD./home/saber[[ Email protected] saber]# CD ~ #当前用户主目录 ~[[email protected] ~]# CD. [[email protected]/]# #根目录/[[email protected]/]# Pwd/[[email protected]/]# CD ~[[email protected] ~]# p Wd/root
2. Some common commands
PWD #查看绝对路径
File filename #查看file文件属性
LS #查看当前目录下的所有文件, shorthand for list
Ls-r #递归显示子目录文件
Ls-la list all files, including hidden files
LS-L lists all the files and displays their properties.
Linux system Architecture and commands