Linux快捷键、终端常用指令(最新版Ubuntu20.04)
蔚蓝星辰mic
·
2021-10-24
·
via Acmic
个人初学Ubuntu,记录一些常用的指令。后续还会随着不断学习,继续补充~~~~
1 系统操作
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Ctrl+Alt+T exit halt halt -d halt -p reboot shutdown -r now shutdown -h now shutdown -r +10 shutdown -r 10:00 shutdown -h +10 shutdown -h 10:00 Ctrl+Alt+F2 Ctrl+Alt+F7
|
2 目录操作
1 2 3 4 5 6 7 8 9 10
| pwd
cd 目录名 cd / cd .. cd ~/demo
mkdir 目录名
rmdir 目录名
|
3 文件操作
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| ls ls -a ls -l ls -al
tree
cp file1 file2 cp -r dir1 dir 2
touch
rm rm -r 目录名 rm -ir 目录名
mv file1 file2 mv file1 dir2
find -name demo.c find -name "hi*" find -name ".c" find -size -10c find -size +20c find -type d find -mtime -5 find -atime -6 find -name "*.c" -exec ls -l {} \;
tar zcvf a.tar.gz b.txt c.txt tar jcvf a.tar.gz b.txt c.txt rar a aa b.txt c.txt rar x aa.rar rar x aa.rar desc
|
其他
1 2 3 4 5
| clear
date cal cal [ [ moth ] year ]
|
下载gcc
1 2 3
| sudo apt install gcc sudo apt install build-essential gcc --version
|
重要的热键
关于root
打赏

wechat
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。