Simple commands for ls and tree in CentOS
1. Command ls
-L detailed information
-A. View hidden files or directories.
-D: only view the directory itself, not list the files and directories under the Directory
-T: sorted by Time
2. tree-C/etc can be used to list the corresponding/etc tree structure. Adding C is the display color! If too many structures are listed, you can use the same parameter L for the restriction column: tree-CL 2/3. alias (temporarily effective) [root @ niejicai-linux ~] # Whichllaliasll = 'LS-l -- color = auto'/bin/ls [root @ niejicai-linux ~] # Aliasniejicai = 'ls/tmp/'[root @ niejicai-linux ~] # Niejicaikeyring-86AmDVpulse-0csfN1qMsBKfVMwareDnDyum.logks-script-Esq4wNpulse-dQkFpOTOEFmzvmware-niejicaiks-script-Esq4wN.logvirtual-niejicai.gYSRnsvmware-rootniejicaivmware-config0vmware-root-558077721 [root @ niejicai-linux ~] # Ls/tmp/keyring-86AmDVpulse-0csfN1qMsBKfVMwareDnDyum.logks-script-Esq4wNpulse-dQkFpOTOEFmzvmware-niejicaiks-script-Esq4wN.logvirtual-niejicai.gYSRnsvmware-rootniejicaivmware-config0vmware-root-558077721 [root @ niejicai-linux ~] # Aliasaliascp = 'cp-I 'aliasl. = 'LS-d. * -- color = auto'aliasll = 'LS-l -- color = auto' aliasls = 'ls -- color = auto' aliasmv = 'mv-I 'aliasniejicai = 'ls/tmp/ 'aliasrm = 'rm-I 'aliaswhich = 'Alias |/usr/bin/which -- tty-only -- read-alias -- show-dot -- show-tilde' [root @ niejicai -linux ~] # Supplement: 3.2 temporarily set the alias of the clear command to cls # aliascls = 'clear' to cancel: # unaliascls3.3. permanently set the alias of cd/web & ls to web # vi/etc /. add the following content to bashrc: # aliasweb = 'CD/web & ls'