最佳答案
1. 安裝與登錄命令
1.1 login
- 功能:登錄Linux體系
- 用法:
login [username]
1.2 shutdown
- 功能:封閉或重啟體系
- 用法:
shutdown [options] [time] [message]
1.3 halt
- 功能:結束體系運轉
- 用法:
halt [options]
1.4 reboot
- 功能:重啟打算機
- 用法:
reboot [options]
1.5 install
- 功能:安裝軟件包
- 用法:
sudo apt-get install package-name
1.6 mount
- 功能:掛載文件體系
- 用法:
mount [options] [source] [target]
1.7 umount
- 功能:卸載已掛載的文件體系
- 用法:
umount [options] [target]
1.8 chsh
- 功能:變動用戶的默許Shell
- 用法:
chsh [options] [username]
1.9 exit
- 功能:退出以後會話或順序
- 用法:
exit
1.10 last
- 功能:表現近來的登錄記錄
- 用法:
last [options]
2. 文件處理命令
2.1 file
- 功能:辨認文件範例
- 用法:
file [options] [file]
2.2 mkdir
- 功能:創建目錄
- 用法:
mkdir [options] [directory]
2.3 grep
- 功能:在文件中查抄特定形式的行
- 用法:
grep [options] [pattern] [file]
2.4 dd
- 功能:數據轉換跟複製東西
- 用法:
dd [options] [source] [destination]
2.5 find
- 功能:在文件體系中查找文件
- 用法:
find [options] [path] [expression]
2.6 mv
- 功能:挪動或重命名文件跟目錄
- 用法:
mv [options] [source] [destination]
2.7 ls
- 功能:列出目錄內容
- 用法:
ls [options] [path]
2.8 diff
- 功能:比較文件或目錄差別
- 用法:
diff [options] [file1] [file2]
2.9 cat
- 功能:合併並表現文件內容
- 用法:
cat [options] [file]
2.10 ln
- 功能:創建鏈接文件
- 用法:
ln [options] [source] [link-name]
3. 體系管理相幹命令
3.1 df
- 功能:表現磁盤空間利用情況
- 用法:
df [options] [path]
3.2 top
- 功能:及時檢查體系資本利用情況
- 用法:
top [options]
3.3 free
- 功能:檢查內存利用情況
- 用法:
free [options]
3.4 quota
- 功能:檢查跟設置磁盤配額
- 用法:
quota [options]
3.5 at
- 功能:安排任務
- 用法:
at [options] [time] [command]
3.6 lp
- 功能:打印行列管理
- 用法:
lp [options] [command]
3.7 adduser
- 功能:增加新用戶
- 用法:
sudo adduser [username]
3.8 groupadd
- 功能:增加新組
- 用法:
sudo groupadd [groupname]
3.9 kill
- 功能:停止過程
- 用法:
kill [options] [pid]
3.10 crontab
- 功能:設置準時任務
- 用法:
crontab [options] [file]
4. 收集操縱命令
4.1 ifconfig
- 功能:設置收集接口
- 用法:
ifconfig [options] [interface]
4.2 ip
- 功能:收集設置跟診斷東西
- 用法:
ip [options] [command]
4.3 ping
- 功能:測試收集連通性
- 用法:
ping [options] [host]
4.4 netstat
- 功能:表現收集連接跟路由信息
- 用法:
netstat [options]
4.5 telnet
- 功能:遠程登錄
- 用法:
telnet [host] [port]
4.6 ftp
- 功能:文件傳輸
- 用法:
ftp [host]
4.7 route
- 功能:路由設置
- 用法:
route [options]
4.8 rlogin
- 功能:遠程登錄
- 用法:
rlogin [host]
4.9 rcp
- 功能:遠程文件複製
- 用法:
rcp [options] [source] [destination]
4.10 finger
- 功能:查詢用戶信息
- 用法:
finger [options] [username]
4.11 mail
- 功能:發送郵件
- 用法:
mail [options] [recipient]
4.12 nslookup
- 功能:域名查詢
- 用法:
nslookup [domain]
5. 體系保險相幹命令
5.1 passwd
- 功能:修改密碼
- 用法:
passwd [options] [username]
5.2 su
- 功能:切換用戶權限
- 用法:
su [options] [username]
5.3 umask
- 功能:設置文件權限掩碼
- 用法:
umask [options]
5.4 chgrp
- 功能:修改文件或目錄所屬組
- 用法:
chgrp [options] [group] [file]
5.5 chmod
- 功能:修改文件或目錄權限
- 用法:
chmod [options] [mode] [file]
5.6 chown
- 功能:修改文件或目錄全部者
- 用法:
chown [options] [owner] [file]
5.7 chattr
- 功能:設置文件或目錄屬性
- 用法:
chattr [options] [attribute] [file]
5.8 sudo
- 功能:以超級用戶權限履行命令
- 用法:
sudo [command]
5.9 ps
- 功能:表現過程列表
- 用法:
ps [options]
5.10 who
- 功能:表現以後登錄用戶
- 用法:
who [options]
6. 其他命令
6.1 tar
- 功能:打包跟解壓文件
- 用法:
tar [options] [file]
6.2 unzip
- 功能:解壓ZIP文件
- 用法:
unzip [options] [file]
6.3 gunzip
- 功能:解壓GZIP文件
- 用法:
gunzip [options] [file]
6.4 unrar
- 功能:解壓RAR文件
- 用法:
unrar [options] [file]
6.5 mtools
- 功能:磁帶設備處理東西
- 用法:
mtools [command]
6.6 man
- 功能:檢查命令手冊
- 用法:
man [command]
6.7 unendcode
- 功能:解碼二進制編碼
- 用法:
unendcode [options] [file]
6.8 uudecode
- 功能:解碼uuencode編碼
- 用法:
uudecode [options] [file]