[TOC]
## 常用命令
### 系統安全
`sudo、su、 chmod、setfac`
### 進程管理
`w、top、ps、kill、 pkill,、 pstree、 killall`
### 用戶管理
`id、 usermod、 useradd、 groupadd、 userdel`
### 文件系統
`mount、 umount、fsck、df、du`
### 網絡應用
`curl、 telnet、mail、 elinks`
### 網絡測試
`ping、 netstat、host`
### 網絡配置
`hostname、 ifconfig`
### 軟件包管理
`yum、rpm、apt-get`
### 文件內容查看
`head、tail、less、more`
### 文件處理
`touch、 unlink、 rename、ln、cat`
### 目錄操作
`cd、mv、rm、pwd、tree、cp、ls`
### 文件權限屬性
`setfac、 chmod、 chown、 chgrp`
### 文件傳輸
`ftp、scp`
### 定時任務
### crontab命令
`crontab -e`
`* * * * * 命令(分時日月周)`
### at命令
一次性執行命令
```
at 2: 00 tomorrow
at>/home/Jason/do job
at> Ctrl+D
```
## shell 命令
### 腳本執行方式
1. 賦予權限,直接執行,
` chmod+ x test.sh;/test.sh`
2. 調用解釋器使得腳本執行,
`bash、csh、csh、ash、bsh、ksh等等`
### 編寫基礎
開頭用#!指定腳本解釋器
`#!/bin/sh`