Linux命令概念总结

[root@centos7-1 ~]# echo $lLANG

[root@centos7-1 ~]# echo $LANG
zh_CN.UTF-8
[root@centos7-1 ~]# echo --help
--help
[root@centos7-1 ~]# echo --HELP
--HELP
[root@centos7-1 ~]# ll --help
用法:ls [选项]... [文件]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all            不隐藏任何以. 开始的项目
  -A, --almost-all        列出除. 及.. 以外的任何项目
      --author            与-l 同时使用时列出每个文件的作者
  -b, --escape            以八进制溢出序列表示不可打印的字符
      --block-size=SIZE      scale sizes by SIZE before printing them; e.g.,
                               '--block-size=M' prints sizes in units of
                               1,048,576 bytes; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~
  -c                         with -lt: sort by, and show, ctime (time of last
                               modification of file status information);
                               with -l: show ctime and sort by name;
                               otherwise: sort by ctime, newest first
  -C                         list entries by columns
      --color[=WHEN]         colorize the output; WHEN can be 'never', 'auto',
                               or 'always' (the default); more info below
  -d, --directory            list directories themselves, not their contents
  -D, --dired                generate output designed for Emacs' dired mode
  -f                         do not sort, enable -aU, disable -ls --color
  -F, --classify             append indicator (one of */=>@|) to entries
      --file-type            likewise, except do not append '*'
      --format=WORD          across -x, commas -m, horizontal -x, long -l,
                               single-column -1, verbose -l, vertical -C
      --full-time            like -l --time-style=full-iso
  -g                类似-l,但不列出所有者
      --group-directories-first
                             group directories before files;
                               can be augmented with a --sort option, but any
                               use of --sort=none (-U) disables grouping
  -G, --no-group        以一个长列表的形式,不输出组名
  -h, --human-readable        与-l 一起,以易于阅读的格式输出文件大小
                (例如 1K 234M 2G)
      --si            同上面类似,但是使用1000 为基底而非1024
  -H, --dereference-command-line
                             follow symbolic links listed on the command line
      --dereference-command-line-symlink-to-dir
                             follow each command line symbolic link
                               that points to a directory
      --hide=PATTERN         do not list implied entries matching shell PATTERN
                               (overridden by -a or -A)
      --indicator-style=WORD  append indicator with style WORD to entry names:
                               none (default), slash (-p),
                               file-type (--file-type), classify (-F)
  -i, --inode                print the index number of each file
  -I, --ignore=PATTERN       do not list implied entries matching shell PATTERN
  -k, --kibibytes            default to 1024-byte blocks for disk usage
  -l                使用较长格式列出信息
  -L, --dereference        当显示符号链接的文件信息时,显示符号链接所指示
                的对象而并非符号链接本身的信息
  -m                所有项目以逗号分隔,并填满整行行宽
  -n, --numeric-uid-gid        类似 -l,但列出UID 及GID 号
  -N, --literal            输出未经处理的项目名称 (如不特别处理控制字符)
  -o                类似 -l,但不列出有关组的信息
  -p,  --indicator-style=slash    对目录加上表示符号"/"
  -q, --hide-control-chars   print ? instead of nongraphic characters
      --show-control-chars   show nongraphic characters as-is (the default,
                               unless program is 'ls' and output is a terminal)
  -Q, --quote-name           enclose entry names in double quotes
      --quoting-style=WORD   use quoting style WORD for entry names:
                               literal, locale, shell, shell-always, c, escape
  -r, --reverse            逆序排列
  -R, --recursive        递归显示子目录
  -s, --size            以块数形式显示每个文件分配的尺寸
  -S                         sort by file size
      --sort=WORD            sort by WORD instead of name: none (-U), size (-S),
                               time (-t), version (-v), extension (-X)
      --time=WORD            with -l, show time as WORD instead of default
                               modification time: atime or access or use (-u)
                               ctime or status (-c); also use specified time
                               as sort key if --sort=time
      --time-style=STYLE     with -l, show times using style STYLE:
                               full-iso, long-iso, iso, locale, or +FORMAT;
                               FORMAT is interpreted like in 'date'; if FORMAT
                               is FORMAT1<newline>FORMAT2, then FORMAT1 applies
                               to non-recent files and FORMAT2 to recent files;
                               if STYLE is prefixed with 'posix-', STYLE
                               takes effect only outside the POSIX locale
  -t                         sort by modification time, newest first
  -T, --tabsize=COLS         assume tab stops at each COLS instead of 8
  -u                         with -lt: sort by, and show, access time;
                               with -l: show access time and sort by name;
                               otherwise: sort by access time
  -U                         do not sort; list entries in directory order
  -v                         natural sort of (version) numbers within text
  -w, --width=COLS           assume screen width instead of current value
  -x                         list entries by lines instead of by columns
  -X                         sort alphabetically by entry extension
  -1                         list one file per line

SELinux options:

  --lcontext                 Display security context.   Enable -l. Lines
                             will probably be too wide for most displays.
  -Z, --context              Display security context so it fits on most
                             displays.  Displays only mode, user, group,
                             security context and file name.
  --scontext                 Display only security context and file name.
      --help        显示此帮助信息并退出
      --version        显示版本信息并退出

SIZE is an integer and optional unit (example: 10M is 10*1024*1024).  Units
are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ... (powers of 1000).

使用色彩来区分文件类型的功能已被禁用,默认设置和 --color=never 同时禁用了它。
使用 --color=auto 选项,ls 只在标准输出被连至终端时才生成颜色代码。
LS_COLORS 环境变量可改变此设置,可使用 dircolors 命令来设置。


退出状态:
 0  正常
 1  一般问题 (例如:无法访问子文件夹)
 2  严重问题 (例如:无法使用命令行参数)

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
请向<http://translationproject.org/team/zh_CN.html> 报告ls 的翻译错误
要获取完整文档,请运行:info coreutils 'ls invocation'
[root@centos7-1 ~]# man echo
[root@centos7-1 ~]# java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
[root@centos7-1 ~]# ll
总用量 286436
-rw-r--r--  1 root  root          0 11月 22 13:54 a
-rw-r--r--  1 root  root          0 11月 22 13:54 ab
-rw-r--r--  1 root  root          0 11月 22 13:54 abc
-rw-r--r--  1 root  root        135 11月 27 17:34 awk.txt
-rw-r--r--  1 root  root        111 11月 22 15:50 grep.txt
-rw-r--r--  1 root  root        511 11月 24 00:11 inittab
-rw-r--r--  1 root  root  138090286 11月 28 18:02 jdk-7u80-linux-x64.rpm
-rw-r--r--  1 root  root  153530841 11月 28 18:02 jdk-7u80-linux-x64.tar.gz
-rw-r--r--  1 root  root       2347 11月 27 16:49 passwd
-rwxr-xr-x  1 root  root       1833 11月 22 12:28 profile
-rw-r--r--  1 root  root         38 11月 24 00:09 sort.txt
drwxr-xr-x 12 50469 users      4096 11月 28 18:38 tengine-2.1.0
-rw-r--r--  1 root  root    1653240 11月 28 18:02 tengine-2.1.0.tar.gz
[root@centos7-1 ~]# mkdir shell
[root@centos7-1 ~]# ll
总用量 286436
-rw-r--r--  1 root  root          0 11月 22 13:54 a
-rw-r--r--  1 root  root          0 11月 22 13:54 ab
-rw-r--r--  1 root  root          0 11月 22 13:54 abc
-rw-r--r--  1 root  root        135 11月 27 17:34 awk.txt
-rw-r--r--  1 root  root        111 11月 22 15:50 grep.txt
-rw-r--r--  1 root  root        511 11月 24 00:11 inittab
-rw-r--r--  1 root  root  138090286 11月 28 18:02 jdk-7u80-linux-x64.rpm
-rw-r--r--  1 root  root  153530841 11月 28 18:02 jdk-7u80-linux-x64.tar.gz
-rw-r--r--  1 root  root       2347 11月 27 16:49 passwd
-rwxr-xr-x  1 root  root       1833 11月 22 12:28 profile
drwxr-xr-x  2 root  root          6 11月 29 17:18 shell
-rw-r--r--  1 root  root         38 11月 24 00:09 sort.txt
drwxr-xr-x 12 50469 users      4096 11月 28 18:38 tengine-2.1.0
-rw-r--r--  1 root  root    1653240 11月 28 18:02 tengine-2.1.0.tar.gz
[root@centos7-1 ~]# cd shell
[root@centos7-1 shell]# ll
总用量 0
[root@centos7-1 shell]# cp /etc/profile ./
[root@centos7-1 shell]# ll
总用量 4
-rwxr-xr-x 1 root root 1833 11月 29 17:19 profile
[root@centos7-1 shell]# vi profile
[root@centos7-1 shell]# vi file1.txt
[root@centos7-1 shell]# vickie=100
[root@centos7-1 shell]# echo $vickie
100
[root@centos7-1 shell]# source file1.txt
hello word
24168
100
[root@centos7-1 shell]# echo $$
24168
[root@centos7-1 shell]# cat file1.txt
echo "hello word"
echo $$
echo $vickie
[root@centos7-1 shell]# vi file1.txt
[root@centos7-1 shell]# source file1.txt
hello word
24168
100
总用量 28
lrwxrwxrwx.   1 root root           7 9月  27 02:39 bin -> usr/bin
dr-xr-xr-x.   5 root root        4096 11月 14 15:58 boot
drwxr-xr-x   20 root root        3320 11月 28 20:24 dev
drwxr-xr-x. 144 root root        8192 11月 29 12:03 etc
drwxr-xr-x.   6 root root          63 11月 27 18:27 home
lrwxrwxrwx.   1 root root           7 9月  27 02:39 lib -> usr/lib
lrwxrwxrwx.   1 root root           9 9月  27 02:39 lib64 -> usr/lib64
drwxr-xr-x.   2 root root           6 4月  11 2018 media
drwxr-xr-x.   2 root root           6 4月  11 2018 mnt
drwxr-xr-x.   4 root root          30 11月 28 18:45 opt
dr-xr-xr-x  209 root root           0 11月 27 11:43 proc
dr-xr-x---.   7 root root        4096 11月 29 17:18 root
drwxr-xr-x   41 root root        1240 11月 29 16:44 run
lrwxrwxrwx.   1 root root           8 9月  27 02:39 sbin -> usr/sbin
drwxr-xr-x.   2 root root           6 4月  11 2018 srv
dr-xr-xr-x   13 root root           0 11月 27 18:57 sys
drwxrwxrwt.  30 root root        4096 11月 29 16:56 tmp
drwxr-xr-x.  14 root root         167 11月 28 19:35 usr
drwxr-xr-x.  22 root root        4096 11月 28 22:19 var
drwx------    2 root sharevickie   24 11月 27 19:22 vickieshare
drwxr-xr-x    3 root root          15 11月 16 12:09 vik
[root@centos7-1 shell]# type source
source 是 shell 内嵌
[root@centos7-1 shell]# . file1.txt
hello word
24168
100
总用量 28
lrwxrwxrwx.   1 root root           7 9月  27 02:39 bin -> usr/bin
dr-xr-xr-x.   5 root root        4096 11月 14 15:58 boot
drwxr-xr-x   20 root root        3320 11月 28 20:24 dev
drwxr-xr-x. 144 root root        8192 11月 29 12:03 etc
drwxr-xr-x.   6 root root          63 11月 27 18:27 home
lrwxrwxrwx.   1 root root           7 9月  27 02:39 lib -> usr/lib
lrwxrwxrwx.   1 root root           9 9月  27 02:39 lib64 -> usr/lib64
drwxr-xr-x.   2 root root           6 4月  11 2018 media
drwxr-xr-x.   2 root root           6 4月  11 2018 mnt
drwxr-xr-x.   4 root root          30 11月 28 18:45 opt
dr-xr-xr-x  210 root root           0 11月 27 11:43 proc
dr-xr-x---.   7 root root        4096 11月 29 17:18 root
drwxr-xr-x   41 root root        1240 11月 29 16:44 run
lrwxrwxrwx.   1 root root           8 9月  27 02:39 sbin -> usr/sbin
drwxr-xr-x.   2 root root           6 4月  11 2018 srv
dr-xr-xr-x   13 root root           0 11月 27 18:57 sys
drwxrwxrwt.  30 root root        4096 11月 29 16:56 tmp
drwxr-xr-x.  14 root root         167 11月 28 19:35 usr
drwxr-xr-x.  22 root root        4096 11月 28 22:19 var
drwx------    2 root sharevickie   24 11月 27 19:22 vickieshare
drwxr-xr-x    3 root root          15 11月 16 12:09 vik
[root@centos7-1 shell]# echo $$
24168
[root@centos7-1 shell]# bash
[root@centos7-1 shell]# pstree
systemd─┬─ModemManager───2*[{ModemManager}]
        ├─NetworkManager───2*[{NetworkManager}]
        ├─VGAuthService
        ├─abrt-dbus───3*[{abrt-dbus}]
        ├─2*[abrt-watch-log]
        ├─abrtd
        ├─accounts-daemon───2*[{accounts-daemon}]
        ├─alsactl
        ├─at-spi-bus-laun─┬─dbus-daemon
        │                 └─3*[{at-spi-bus-laun}]
        ├─at-spi2-registr───2*[{at-spi2-registr}]
        ├─atd
        ├─auditd─┬─audispd─┬─sedispatch
        │        │         └─{audispd}
        │        └─{auditd}
        ├─avahi-daemon───avahi-daemon
        ├─boltd───2*[{boltd}]
        ├─chronyd
        ├─colord───2*[{colord}]
        ├─crond
        ├─cupsd
        ├─2*[dbus-daemon]
        ├─dbus-launch
        ├─dconf-service───2*[{dconf-service}]
        ├─dnsmasq───dnsmasq
        ├─evolution-addre─┬─evolution-addre───5*[{evolution-addre}]
        │                 └─4*[{evolution-addre}]
        ├─evolution-calen─┬─evolution-calen───8*[{evolution-calen}]
        │                 └─4*[{evolution-calen}]
        ├─evolution-sourc───3*[{evolution-sourc}]
        ├─fwupd───4*[{fwupd}]
        ├─gdm─┬─X───{X}
        │     ├─gdm-session-wor─┬─gnome-session-b─┬─abrt-applet───2*[{abrt-applet}]
        │     │                 │                 ├─gnome-shell─┬─ibus-daemon─┬─ibus-dconf───3+
        │     │                 │                 │             │             ├─ibus-engine-si+
        │     │                 │                 │             │             └─2*[{ibus-daemo+
        │     │                 │                 │             └─9*[{gnome-shell}]
        │     │                 │                 ├─gnome-software───3*[{gnome-software}]
        │     │                 │                 ├─gsd-a11y-settin───3*[{gsd-a11y-settin}]
        │     │                 │                 ├─gsd-account───3*[{gsd-account}]
        │     │                 │                 ├─gsd-clipboard───2*[{gsd-clipboard}]
        │     │                 │                 ├─gsd-color───3*[{gsd-color}]
        │     │                 │                 ├─gsd-datetime───3*[{gsd-datetime}]
        │     │                 │                 ├─gsd-disk-utilit───2*[{gsd-disk-utilit}]
        │     │                 │                 ├─gsd-housekeepin───3*[{gsd-housekeepin}]
        │     │                 │                 ├─gsd-keyboard───3*[{gsd-keyboard}]
        │     │                 │                 ├─gsd-media-keys───3*[{gsd-media-keys}]
        │     │                 │                 ├─gsd-mouse───3*[{gsd-mouse}]
        │     │                 │                 ├─gsd-power───3*[{gsd-power}]
        │     │                 │                 ├─gsd-print-notif───2*[{gsd-print-notif}]
        │     │                 │                 ├─gsd-rfkill───2*[{gsd-rfkill}]
        │     │                 │                 ├─gsd-screensaver───2*[{gsd-screensaver}]
        │     │                 │                 ├─gsd-sharing───3*[{gsd-sharing}]
        │     │                 │                 ├─gsd-smartcard───4*[{gsd-smartcard}]
        │     │                 │                 ├─gsd-sound───3*[{gsd-sound}]
        │     │                 │                 ├─gsd-wacom───2*[{gsd-wacom}]
        │     │                 │                 ├─gsd-xsettings───3*[{gsd-xsettings}]
        │     │                 │                 ├─nautilus-deskto───3*[{nautilus-deskto}]
        │     │                 │                 ├─ssh-agent
        │     │                 │                 ├─tracker-extract───13*[{tracker-extract}]
        │     │                 │                 ├─tracker-miner-a───3*[{tracker-miner-a}]
        │     │                 │                 ├─tracker-miner-f───3*[{tracker-miner-f}]
        │     │                 │                 ├─tracker-miner-u───3*[{tracker-miner-u}]
        │     │                 │                 └─3*[{gnome-session-b}]
        │     │                 └─2*[{gdm-session-wor}]
        │     └─3*[{gdm}]
        ├─geoclue───2*[{geoclue}]
        ├─gnome-keyring-d───3*[{gnome-keyring-d}]
        ├─gnome-shell-cal───5*[{gnome-shell-cal}]
        ├─goa-daemon───4*[{goa-daemon}]
        ├─goa-identity-se───3*[{goa-identity-se}]
        ├─gsd-printer───2*[{gsd-printer}]
        ├─gssproxy───5*[{gssproxy}]
        ├─gvfs-afc-volume───3*[{gvfs-afc-volume}]
        ├─gvfs-goa-volume───2*[{gvfs-goa-volume}]
        ├─gvfs-gphoto2-vo───2*[{gvfs-gphoto2-vo}]
        ├─gvfs-mtp-volume───2*[{gvfs-mtp-volume}]
        ├─gvfs-udisks2-vo───2*[{gvfs-udisks2-vo}]
        ├─gvfsd─┬─gvfsd-trash───2*[{gvfsd-trash}]
        │       └─2*[{gvfsd}]
        ├─gvfsd-fuse───5*[{gvfsd-fuse}]
        ├─gvfsd-metadata───2*[{gvfsd-metadata}]
        ├─ibus-portal───2*[{ibus-portal}]
        ├─ibus-x11───2*[{ibus-x11}]
        ├─ksmtuned───sleep
        ├─libvirtd───16*[{libvirtd}]
        ├─lsmd
        ├─lvmetad
        ├─master─┬─pickup
        │        └─qmgr
        ├─mission-control───3*[{mission-control}]
        ├─nginx───nginx
        ├─packagekitd───2*[{packagekitd}]
        ├─polkitd───6*[{polkitd}]
        ├─pulseaudio───2*[{pulseaudio}]
        ├─rngd
        ├─rpcbind
        ├─rsyslogd───2*[{rsyslogd}]
        ├─rtkit-daemon───2*[{rtkit-daemon}]
        ├─smartd
        ├─sshd───sshd───bash───bash───pstree
        ├─systemd-journal
        ├─systemd-logind
        ├─systemd-udevd
        ├─tracker-store───7*[{tracker-store}]
        ├─tuned───4*[{tuned}]
        ├─udisksd───4*[{udisksd}]
        ├─upowerd───2*[{upowerd}]
        ├─vmtoolsd
        ├─vmtoolsd───2*[{vmtoolsd}]
        ├─wpa_supplicant
        └─xdg-permission-───2*[{xdg-permission-}]

[root@centos7-1 shell]# bash file1.txt
hello word
4702

总用量 28
lrwxrwxrwx.   1 root root           7 9月  27 02:39 bin -> usr/bin
dr-xr-xr-x.   5 root root        4096 11月 14 15:58 boot
drwxr-xr-x   20 root root        3320 11月 28 20:24 dev
drwxr-xr-x. 144 root root        8192 11月 29 12:03 etc
drwxr-xr-x.   6 root root          63 11月 27 18:27 home
lrwxrwxrwx.   1 root root           7 9月  27 02:39 lib -> usr/lib
lrwxrwxrwx.   1 root root           9 9月  27 02:39 lib64 -> usr/lib64
drwxr-xr-x.   2 root root           6 4月  11 2018 media
drwxr-xr-x.   2 root root           6 4月  11 2018 mnt
drwxr-xr-x.   4 root root          30 11月 28 18:45 opt
dr-xr-xr-x  213 root root           0 11月 27 11:43 proc
dr-xr-x---.   7 root root        4096 11月 29 17:18 root
drwxr-xr-x   41 root root        1240 11月 29 16:44 run
lrwxrwxrwx.   1 root root           8 9月  27 02:39 sbin -> usr/sbin
drwxr-xr-x.   2 root root           6 4月  11 2018 srv
dr-xr-xr-x   13 root root           0 11月 27 18:57 sys
drwxrwxrwt.  30 root root        4096 11月 29 16:56 tmp
drwxr-xr-x.  14 root root         167 11月 28 19:35 usr
drwxr-xr-x.  22 root root        4096 11月 28 22:19 var
drwx------    2 root sharevickie   24 11月 27 19:22 vickieshare
drwxr-xr-x    3 root root          15 11月 16 12:09 vik
[root@centos7-1 shell]# ll
总用量 8
-rw-r--r-- 1 root root   47 11月 29 17:26 file1.txt
-rwxr-xr-x 1 root root 1833 11月 29 17:19 profile
[root@centos7-1 shell]# vi file1.txt
[root@centos7-1 shell]# ll
总用量 8
-rw-r--r-- 1 root root   59 11月 29 17:34 file1.txt
-rwxr-xr-x 1 root root 1833 11月 29 17:19 profile
[root@centos7-1 shell]# chmod +x file1.txt
[root@centos7-1 shell]# ll
总用量 8
-rwxr-xr-x 1 root root   59 11月 29 17:34 file1.txt
-rwxr-xr-x 1 root root 1833 11月 29 17:19 profile
[root@centos7-1 shell]# ./file1.txt
hello word
9185

总用量 28
lrwxrwxrwx.   1 root root           7 9月  27 02:39 bin -> usr/bin
dr-xr-xr-x.   5 root root        4096 11月 14 15:58 boot
drwxr-xr-x   20 root root        3320 11月 28 20:24 dev
drwxr-xr-x. 144 root root        8192 11月 29 12:03 etc
drwxr-xr-x.   6 root root          63 11月 27 18:27 home
lrwxrwxrwx.   1 root root           7 9月  27 02:39 lib -> usr/lib
lrwxrwxrwx.   1 root root           9 9月  27 02:39 lib64 -> usr/lib64
drwxr-xr-x.   2 root root           6 4月  11 2018 media
drwxr-xr-x.   2 root root           6 4月  11 2018 mnt
drwxr-xr-x.   4 root root          30 11月 28 18:45 opt
dr-xr-xr-x  211 root root           0 11月 27 11:43 proc
dr-xr-x---.   7 root root        4096 11月 29 17:18 root
drwxr-xr-x   41 root root        1240 11月 29 16:44 run
lrwxrwxrwx.   1 root root           8 9月  27 02:39 sbin -> usr/sbin
drwxr-xr-x.   2 root root           6 4月  11 2018 srv
dr-xr-xr-x   13 root root           0 11月 27 18:57 sys
drwxrwxrwt.  30 root root        4096 11月 29 16:56 tmp
drwxr-xr-x.  14 root root         167 11月 28 19:35 usr
drwxr-xr-x.  22 root root        4096 11月 28 22:19 var
drwx------    2 root sharevickie   24 11月 27 19:22 vickieshare
drwxr-xr-x    3 root root          15 11月 16 12:09 vik
[root@centos7-1 shell]# var1=22
[root@centos7-1 shell]# echo $var1
22
[root@centos7-1 shell]# vickie(){}
bash: 未预期的符号 `{}' 附近有语法错误
[root@centos7-1 shell]# vickie(){
> echo $$
> echo "hello word"
> echo $var1
> ls -l /
> }
[root@centos7-1 shell]# vickie
3319
hello word
22
总用量 28
lrwxrwxrwx.   1 root root           7 9月  27 02:39 bin -> usr/bin
dr-xr-xr-x.   5 root root        4096 11月 14 15:58 boot
drwxr-xr-x   20 root root        3320 11月 28 20:24 dev
drwxr-xr-x. 144 root root        8192 11月 29 12:03 etc
drwxr-xr-x.   6 root root          63 11月 27 18:27 home
lrwxrwxrwx.   1 root root           7 9月  27 02:39 lib -> usr/lib
lrwxrwxrwx.   1 root root           9 9月  27 02:39 lib64 -> usr/lib64
drwxr-xr-x.   2 root root           6 4月  11 2018 media
drwxr-xr-x.   2 root root           6 4月  11 2018 mnt
drwxr-xr-x.   4 root root          30 11月 28 18:45 opt
dr-xr-xr-x  210 root root           0 11月 27 11:43 proc
dr-xr-x---.   7 root root        4096 11月 29 17:18 root
drwxr-xr-x   41 root root        1240 11月 29 16:44 run
lrwxrwxrwx.   1 root root           8 9月  27 02:39 sbin -> usr/sbin
drwxr-xr-x.   2 root root           6 4月  11 2018 srv
dr-xr-xr-x   13 root root           0 11月 27 18:57 sys
drwxrwxrwt.  30 root root        4096 11月 29 16:56 tmp
drwxr-xr-x.  14 root root         167 11月 28 19:35 usr
drwxr-xr-x.  22 root root        4096 11月 28 22:19 var
drwx------    2 root sharevickie   24 11月 27 19:22 vickieshare
drwxr-xr-x    3 root root          15 11月 16 12:09 vik
[root@centos7-1 shell]# type vickie
vickie 是函数
vickie () 

    echo $$;
    echo "hello word";
    echo $var1;
    ls --color=auto -l /
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值