LS List view Directory
View folders under the root directory
[[email protected] ~]# LS/
Bin Boot Dev etc home lib lib64 media mnt opt proc root run sbin SRV sys tmp usr var
/root/Home Directory
/root/.ssh/authorized_keys root User home directory Ssh-keys
[[email protected] ~]# useradd Xuwei Create a normal user Xuwei
[[email protected] ~]# Ls/home/xuwei View the home directory of ordinary user Xuwei;
[[email protected] ~]# ls/etc/ssh/sshd_config All about SSH configuration files under this directory file
• Software to install the tree command Yum install-y tree
[[Email protected] ~]# tree--hep lists general use methods
Tree:invalid argument-' e '.
Usage:tree [-acdfghilnpqrstuvxacdfqnsux] [-H basehref] [-t title] [-L level [-R]]
[-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]
[--device] [--noreport] [--nolinks] [--dirsfirst] [--charset CharSet]
[--filelimit[=]#] [--si] [--timefmt[=]<f>] [<directory List>]
There is also a man tree that is more fully visible than Hep.
[[email protected] ~]# tree-l 2/Display/directory below the Level 2 directory display
Ls/usr/bin | | /usr/sbin/| | /bin | | /sbin/These four directories are commonly used commands
The difference between/bin/and/sbin/:/sbin/is the command that the root user uses,/bin/the command that the ordinary user uses, root can also be the command of the ordinary user
ls/boot/system startup related files
ls/dev/System set-up file
ls/etc/the directory where the system configuration files are located
ls/home/User's home directory file
ls/lib/lib64 System Repository File = = Windows. dll file
The green file is the library file, and the light blue file is a soft link
Ldd/bin/ls See which library files The LS command depends on (LDD command)
Linux-centos Study notes (Grass pai)