Basic linux commands~~Memo

vim creates a file vi writes a file bc calculator quit exits the calculator mkdir creates a directory

mkdir -p recursively creates a directory rmdir deletes a directory hostname displays the system name

who displays the information of the currently logged in user cat view files more view all content

date displays the current date and time reboot reboot init 6 reboot rm delete

rm -rf delete any file touch create file touch ...: create multiple files in the agreed directory

tail View the countdown column of the file tac File in reverse order head View the first ten lines of the file head -n Add - to display a few lines

grep filter cat 123|grep happy

passwd changes the user password passwd root specifies the change of the user password df checks the disk usage

top View memory and CPU performance mount Mount local files or disks mount/dev/sr0 /opt

free View memory usage File name Directory name MV Move files or directories Reference: mv 123 nihao

find Find eg: find path-name ifcfg -eth0 su switch user EXIT log out

userdel delete user userdel 123

graupadd creates a group name groupdel deletes a group iostat checks the disk status

tar xvf file name tar gz decompress nginx service installation package

Unzip decompresses files ending with ZIP ps -AUX View currently running processes

du View file or directory size clear clear screen cal display calendar cp copy

chmod changes file permissions chmod 357 123.txt

chwon changes the file owner and group

Guess you like

Origin blog.csdn.net/Queen_yu/article/details/132754230