Linux常用命令 一
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
總結
以上是生活随笔為你收集整理的Linux常用命令 一的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php获取excel表格中数据的小方法
- 下一篇: linux禁用IPv6地址