Open ghost opened 6 years ago
$ sudo apt-get install <package_name>
$ sudo apt-get remove <package_name>
$ sudo apt-get update
$ sudo useradd <user>
$ sudo passwd <user>
$ sudo userdel <user>
$ sudo groupadd <groupname>
$ sudo usermod -a -G <groupname> <username>
$ sudo groupdel <groupname>
|
The result in the left is the param for the right
$ history | grep l
$ ps
Show command manual
$ man <command>
$ man cat
$ ls <option> <directory>
-l
-a
$ pwd
$ cd <directory>
$ cat <filename>
$ cp
$ mv
$ mkdir
$ rm # sudo rm -rf /*
$ touch <filename>
$ tail $ tail -f #show and keep the output, it is useful to check file change realtime $ tail -n 10 # show the last 10 lines
$ nano $ nano README.md
$ vim $ vim README.md
$ sudo su
$ chmod <option> <specification> file # chmod -R 777 storage # chmod 644 index.php
$ chown <option> <user>:<group> file
$ grep <word> <filename> # grep vagrant Vagrantfile
$ ifconfig
netstat
@at-hainguyen5
Package & Software
Install Package
Remove Package
Update the Package
User & Group
Create user
Set password
Delete user
Create group
Add user into group
Delete group
The
|
symbolThe result in the left is the param for the right
System
Listing proccess
Help
Show command manual
FILE AND DIRECTORY
Listing file and directory
-l
listing with peropety: owner, permission, time, size ...-a
include hidden file and hidden directoryGet current directory
Go to directory
Show file content
copy file
Move file or rename file
Make directory
Remove file
Create file
Show the tail file
Open file in nano editor
Open file in Vim editor
OWER, PERMISSION
Login to root user
Set file permission
Set owner for file
Search
Find string in file
Network
Show network information
Show information and statistics about protocols