Simple commands for ls and tree in CentOS

Source: Internet
Author: User
1. command ls-l details-a view hidden files or directories-d only view the directory itself, not list the files and directories under the Directory-t in chronological order 2. tree-C/et

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 ~] # Which llalias ll = 'ls-l -- color = Auto'/bin/ls [root @ niejicai-linux ~] # Alias niejicai = 'ls/tmp/'[root @ niejicai-linux ~] # Niejicaikeyring-86AmDV pulse-0csfN1qMsBKf VMwareDnD yum. logks-script-Esq4wN pulse-dQkFpOTOEFmz vmware-niejicaiks-script-Esq4wN.log virtual-niejicai.gYSRns vmware-config0 vmware-rootniejicai vmware-root-558077721 [root @ niejicai-linux ~] # Ls/tmp/keyring-86AmDV pulse-0csfN1qMsBKf VMwareDnD yum. logks-script-Esq4wN pulse-dQkFpOTOEFmz vmware-niejicaiks-script-Esq4wN.log virtual-niejicai.gYSRns vmware-rootniejicai vmware-config0 vmware-root-558077721 [root @ niejicai-linux ~] # Aliasalias cp = 'CP-I 'alias l. = 'ls-d. * -- color = auto'alias ll = 'ls-l -- color = Auto' alias ls = 'ls -- color = Auto' alias mv = 'MV-I 'alias niejicai =' ls/tmp/'Alias rm = 'rm-I 'alias which = 'Alias |/usr/bin/which -- tty-only -- read-alias -- show-dot -- show- ti lde '[root @ niejicai-linux ~] # Supplement: 3.2 temporarily set the alias of the clear command to cls # alias cls = 'clear' to cancel: # unalias cls 3.3: permanently set the cd/web & ls command alias to web # vi/etc /. add the following content to bashrc: # alias web = '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.