touch (创建或更新文件信息)
$touch --help
用法:touch [选项]... 文件...
将每个<文件>的访问及修改时间都更新为目前时间。
长选项必须用的参数在使用短选项时也是必须的。
-a 只更改访问时间
-c, --no-create 不创建任何文件
-d, --date=字符串 使用<字符串>表示的时间而不是目前的时间
-f (此选项不作处理)
-m 只更改修改时间
-r, --reference=FILE use this file's times instead of current time
-t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time
--time=WORD change the specified time:
WORD is access, atime, or use: equivalent to -a
WORD is modify or mtime: equivalent to -m
--help 显示此帮助信息并退出
--version 输出版本信息并退出
Note that the -d and -t options accept different time-date formats.
If a FILE is -, touch standard output.
alias (类似于创建快捷方式)
alias: usage: alias [-p] [name[=value] ... ]
如: alias vi="vim -C"
export (修改临时的系统变量,而不用重启)
如: export PS1="\[\e[32;1m\][\u@\h] \w \n $ \[\e[0m\]"
tail (显示部分文件类容) 默认最后10行
如: tail -5 /etc/group (显示group文件最后5行的内容)
转载于:https://blog.51cto.com/vsfor/753998