Linux常用命令 一
touch? (創(chuàng)建或更新文件信息)
$touch --help
用法:touch [選項(xiàng)]... 文件...
將每個(gè)<文件>的訪問及修改時(shí)間都更新為目前時(shí)間。
長選項(xiàng)必須用的參數(shù)在使用短選項(xiàng)時(shí)也是必須的。
? -a???????????????????? 只更改訪問時(shí)間
? -c, --no-create??????? 不創(chuàng)建任何文件
? -d, --date=字符串??????? 使用<字符串>表示的時(shí)間而不是目前的時(shí)間
? -f???????????????????? (此選項(xiàng)不作處理)
? -m???????????????????? 只更改修改時(shí)間
? -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 (類似于創(chuàng)建快捷方式)
alias: usage: alias [-p] [name[=value] ... ]
如: alias vi="vim -C"
?
export? (修改臨時(shí)的系統(tǒng)變量,而不用重啟)
如: export PS1="\[\e[32;1m\][\u@\h] \w \n $ \[\e[0m\]"
?
tail (顯示部分文件類容) 默認(rèn)最后10行
如: tail -5 /etc/group??? (顯示group文件最后5行的內(nèi)容)
轉(zhuǎn)載于:https://blog.51cto.com/vsfor/753998
總結(jié)
以上是生活随笔為你收集整理的Linux常用命令 一的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php获取excel表格中数据的小方法
- 下一篇: linux禁用IPv6地址