| Command | Detail |
|---|---|
| netstat -pntle | grep :80 | check port state |
| ps -a | check process |
| touch filename | create file |
| sudo useradd -m username | create new user |
| su - username | switch user |
| gpasswd -a testuser root | add user to root grou |
| unzip filename.zip | unzip file |
| zip filename.zip dirname | zip file |
| ls -l | file details |
| stat -f | file state |
| Command | Detail |
|---|---|
| - u | undo |
| - /xxx | search |
| - n | search next |
| - :$ | to end |
| - yy | copy |
| - p | paste |