Practical Linux Commands

Practical Linux Commands


1 System Commands


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

2 VI


Command Detail
- u undo
- /xxx search
- n search next
- :$ to end
- yy copy
- p paste

Tags: Linux Command Vistied:
Share: Twitter Facebook LinkedIn