Simple commands for ls and tree in CentOS

Source: Internet
Author: User

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'

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.