linux学习随笔
date +%Y-%m-%d\ %H:%M:%S
cal 10 2009
yum install bc //計算器
bc
安裝thefuck
yum install gcc gcc++ python python-devel pip //安裝必備組件
pip install --upgrade pip //pip來升級pip
pip install thefuck //安裝thefuck
alias fuck='eval $(thefuck $(fc -ln -1)); history -r' //設(shè)置別名
whatis locate yum install nano //文本編輯器,可以用鼠標(biāo)操作的編輯器
nano anaconda-ks.cfg pwd 顯示當(dāng)前目錄 切換目錄后,如果想跳回當(dāng)前目錄用 cd - rmdir test //刪除空目錄
rm test/* //刪除目錄下的所有文件 basename /etc/my.cnf my.cnf dirname /etc/my.cnf /etc
nano anaconda-ks.cfg pwd 顯示當(dāng)前目錄 切換目錄后,如果想跳回當(dāng)前目錄用 cd - rmdir test //刪除空目錄
rm test/* //刪除目錄下的所有文件 basename /etc/my.cnf my.cnf dirname /etc/my.cnf /etc
非root用戶切換到root su 回車,輸入root密碼 root用戶切換到非root用戶 su 用戶名
?
轉(zhuǎn)載于:https://www.cnblogs.com/isuben/p/6959497.html
總結(jié)
- 上一篇: jQuery 事件绑定
- 下一篇: 淄博烧烤为什么会火?