Linux Common Commands ll is ls-l--color=auto

Source: Internet
Author: User
Tags zookeeper egrep

1.linux system operation or development, will often use the ll is the ls-l--color=auto command. Like LL-HF,

<span style= "FONT-SIZE:18PX;"  >[[email protected] ~]$ ll-hf total dosage 1.1gdrwxrwxr-x.  2 Doctor Doctor 4.0K January 10:23 documents/-rw-r-----.  1 Doctor doctor 701M December 21:51 far123-xp-2014.5c.isodrwxr-xr-x.  4 Doctor Doctor 4.0K November 16:00 hadoop/drwxrwxr-x. 6 Doctor doctor 4.0K December 22:04 hbaserootdir/drwxrwxr-x.  Doctor Doctor 4.0K January 11:16 opt/drwxrwxr-x.  2 Doctor Doctor 4.0K August 21:48 save/drwxrwxr-x.  2 Doctor Doctor 4.0K January 1 15:26 share/drwxrwxr-x.  3 Doctor Doctor 4.0K January 2 21:11 vmware/-rwxr-x--x.  1 Doctor doctor 418M December 23:07 vmware-workstation-full-11.0.0-2305329.x86_64 (1). Bundle*drwxrwxr-x.  3 Doctor Doctor 4.0K December 3 21:03 webstormprojects/drwxrwxr-x.  4 Doctor Doctor 4.0K December 08:15 workspace/drwxrwxr-x.  4 Doctor Doctor 4.0K October 18:28 workspaceforwork/drwxrwxr-x.  7 Doctor doctor 4.0K January 23:50 workspace-sts-3.6.2.release/drwxrwxr-x.  5 Doctor doctor 4.0K September 01:25 zookeeper/drwxr-xr-x. 2 Doctor doctor 4.0K January 18 20:05 public/DRWxr-xr-x.  2 Doctor doctor 4.0K October 30 21:11 video/drwxr-xr-x.  2 Doctor Doctor 4.0K December 7 23:04 picture/drwxr-xr-x.  4 Doctor doctor 4.0K December 13 20:58 document/DRWXR-XR-X.  3 Doctor doctor 12K January 18 10:46 download/drwxr-xr-x.  3 Doctor doctor 4.0K August 19 21:09 Music/drwxr-xr-x. 2 Doctor Doctor 4.0K December 4 21:54 Desktop/</span>

- H, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)
-F,--classify,--file-type
append a character to each file name to indicate the type of the file. "*" denotes an ordinary executable file; "/" means a directory; "@" denotes a symbolic link; "|" Represents a fifos; "=" means a socket (sockets); nothing means a normal file.

Of course, for convenience, we can also use aliases like alias ll= ' ls-l--color=auto '

, define an alias:

<span style= "FONT-SIZE:18PX;"  >[[email protected] ~]$ alias ll= ' LS-LHF--color=auto ' [[email protected] ~]$ ll total dosage 1.1gdrwxrwxr-x.  2 Doctor Doctor 4.0K January 10:23 documents/-rw-r-----.  1 Doctor doctor 701M December 21:51 far123-xp-2014.5c.isodrwxr-xr-x.  4 Doctor Doctor 4.0K November 16:00 hadoop/drwxrwxr-x. 6 Doctor doctor 4.0K December 22:04 hbaserootdir/drwxrwxr-x.  Doctor Doctor 4.0K January 11:16 opt/drwxrwxr-x.  2 Doctor Doctor 4.0K August 21:48 save/drwxrwxr-x.  2 Doctor Doctor 4.0K January 1 15:26 share/drwxrwxr-x.  3 Doctor Doctor 4.0K January 2 21:11 vmware/-rwxr-x--x.  1 Doctor doctor 418M December 23:07 vmware-workstation-full-11.0.0-2305329.x86_64 (1). Bundle*drwxrwxr-x.  3 Doctor Doctor 4.0K December 3 21:03 webstormprojects/drwxrwxr-x.  4 Doctor Doctor 4.0K December 08:15 workspace/drwxrwxr-x.  4 Doctor Doctor 4.0K October 18:28 workspaceforwork/drwxrwxr-x.  7 Doctor doctor 4.0K January 23:50 workspace-sts-3.6.2.release/drwxrwxr-x. 5 Doctor doctor 4.0K September 01:25 ZookeepEr/drwxr-xr-x.  2 Doctor doctor 4.0K January 18 20:05 public/drwxr-xr-x.  2 Doctor doctor 4.0K October 30 21:11 video/drwxr-xr-x.  2 Doctor Doctor 4.0K December 7 23:04 picture/drwxr-xr-x.  4 Doctor doctor 4.0K December 13 20:58 document/DRWXR-XR-X.  3 Doctor doctor 12K January 18 10:46 download/drwxr-xr-x.  3 Doctor doctor 4.0K August 19 21:09 Music/drwxr-xr-x. 2 Doctor Doctor 4.0K December 4 21:54 desktop/[[email protected] ~]$ alias alias egrep= ' Egrep--color=auto ' Alias fgrep= ' Fgrep --color=auto ' Alias grep= ' grep--color=auto ' Alias l.= ' ls-d. *--color=auto ' Alias ll= ' LS-LHF--color=auto ' Alias ls= ' ls-- Color=auto ' Alias vi= ' vim ' Alias Which= ' Alias | /usr/bin/which--tty-only--read-alias--show-dot--show-tilde ' </span>

I am here to cover the system alias, do not appear in the shell syntax space, note.

2. How to show hidden files, general configuration The system commands such as JDK are defined in . bash_profile. BASHRC .

You may think of ls-a, but he also shows other directories.

You can use ls-d. * Show only these hidden directories.

-D,--directory
lists directory names like other files, rather than listing their contents.

Linux Common Commands ll is ls-l--color=auto

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.