Linux common command ll is ls-l -- color = auto
1. linux system O & M or development is often usedLlThat isLs-l -- color = autoCommand. For exampleLl-hF,
<Span style = "font-size: 18px;"> [doctor @ localhost ~] $ Ll-hF total usage 1.1Gdrwxrwxr-x. 2 doctor 4.0 K January 18 10:23 Documents/-rw-r -----. 1 doctor 701 M December 24 21:51 Far123-XP-2014.5c.isodrwxr-xr-x. 4 doctor 4.0 K 16:00 hadoop/drwxrwxr-x. 6 doctor 4.0 K December 16 22:04 hbaseRootDir/drwxrwxr-x. 27 doctor 4.0 K January 17 11:16 opt/drwxrwxr-x. 2 doctor 4.0 K August 13 21:48 save/drwxrwxr-x. 2 doctor 4.0 K 15:26 share/drwxrwxr-x. 3 doctor 4.0 K January 2 21:11 vmware/-rwxr-x -- x. 1 doctor 418 M December 24 23:07 VMware-Workstation-Full-11.0.0-2305329.x86_64 (1 ). bundle * drwxrwxr-x. 3 doctor 4.0 K December 3 21:03 WebstormProjects/drwxrwxr-x. 4 doctor 4.0 K December 28 08:15 workspace/drwxrwxr-x. 4 doctor 4.0 K October 26 18:28 workspaceForWork/drwxrwxr-x. 7 doctor 4.0 K January 17 23:50 workspace-sts-3.6.2.RELEASE/drwxrwxr-x. 5 doctor 4.0 K September 25 01:25 zookeeper/drwxr-xr-x. 2 doctor 4.0 K January 18 20:05 public/drwxr-xr-x. 2 doctor 4.0 K 21:11 video/drwxr-xr-x. 2 doctor 4.0 K December 7 23:04 image/drwxr-xr-x. 4 doctor 4.0 K October 11 20:58 documentation/drwxr-xr-x. 3 doctor 12 K download/drwxr-xr-x at 10:46, January 1, January 18. 3 doctor 4.0 K August 19 21:09 music/drwxr-xr-x. 2 doctor 4.0 K December 4 21:54 desktop/</span>
-H,
-- Human-readable
Print sizes in human readable format (e.g., 1 K 234 M 2G)
-F, -- classify, -- file-type
Enclose a character after each file name to indicate the type of the file. "*" Indicates a common executable file; "/" indicates a directory; "@" indicates a symbolic link; "|" indicates OS; "=" indicates a socket (sockets ); nothing indicates a common file.
For convenience, we can also use the aliasAlias ll = 'LS-l -- color = auto'
Define an alias:
<Span style = "font-size: 18px;"> [doctor @ localhost ~] $ Alias ll = 'LS-lhF -- color = auto' [doctor @ localhost ~] $ Ll total usage 1.1Gdrwxrwxr-x. 2 doctor 4.0 K January 18 10:23 Documents/-rw-r -----. 1 doctor 701 M December 24 21:51 Far123-XP-2014.5c.isodrwxr-xr-x. 4 doctor 4.0 K 16:00 hadoop/drwxrwxr-x. 6 doctor 4.0 K December 16 22:04 hbaseRootDir/drwxrwxr-x. 27 doctor 4.0 K January 17 11:16 opt/drwxrwxr-x. 2 doctor 4.0 K August 13 21:48 save/drwxrwxr-x. 2 doctor 4.0 K 15:26 share/drwxr Wxr-x. 3 doctor 4.0 K January 2 21:11 vmware/-rwxr-x -- x. 1 doctor 418 M December 24 23:07 VMware-Workstation-Full-11.0.0-2305329.x86_64 (1 ). bundle * drwxrwxr-x. 3 doctor 4.0 K December 3 21:03 WebstormProjects/drwxrwxr-x. 4 doctor 4.0 K December 28 08:15 workspace/drwxrwxr-x. 4 doctor 4.0 K October 26 18:28 workspaceForWork/drwxrwxr-x. 7 doctor 4.0 K January 17 23:50 workspace-sts-3.6.2.RELEA SE/drwxrwxr-x. 5 doctor 4.0 K September 25 01:25 zookeeper/drwxr-xr-x. 2 doctor 4.0 K January 18 20:05 public/drwxr-xr-x. 2 doctor 4.0 K 21:11 video/drwxr-xr-x. 2 doctor 4.0 K December 7 23:04 image/drwxr-xr-x. 4 doctor 4.0 K October 11 20:58 documentation/drwxr-xr-x. 3 doctor 12 K download/drwxr-xr-x at 10:46, January 1, January 18. 3 doctor 4.0 K August 19 21:09 music/drwxr-xr-x. 2 doctor 4.0 K December 4 21:54 desktop/[doct Or @ localhost ~] $ 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 overwrite the alias of the system. Do not use spaces in shell syntax.
2. How to display hidden files? Generally, system commands such as jdk should be configured in. Bash_profile. bashrc.
You may think of ls-a, but it also shows other directories.
AvailableLs-d .*Only these hidden directories are displayed.
-D, -- directory
List Directory names like other files, rather than their contents.