70 Common Commands in Linux
The linux command is a command to manage the Linux system. For a Linux system, the commands of Linux system management are the core of its normal operation.
get help
help: View the help of linux built-in commands, the information displays a brief description of the query command and the use and description of some parameters
man: You can view information such as command help, configuration file help, and programming help through man.
System Basic Commands
ip addr: view ip address
date: View system time
logout: logout
shutdown now: shutdown
reboot: reboot
login : log in to the system
clear: clear the screen
whoami: Displays the current user name
File and directory operation commands
Is: list abbreviation, lists the content of the directory and its content attribute information
cd: change directory abbreviation, switch from the current working directory to the specified working directory
cp: copy abbreviation, copy a file or directory
find: find directories and files in directories
mkdir: make directories abbreviation, create a directory
mv: move abbreviation, move or rename a file
pwd: print work ina directory abbreviation, showing the absolute path of the current working directory
rename: rename the file
mkdir: create a new directory
rmdir : remove empty directories
rm-rf : delete one or more files or directories
touch : create a new empty file, change the timestamp flexibility of an existing file
file: Displays the type of the file
cat: view all the information in the file
more: Pagination to display file content
less: paging to display the contents of the file, the opposite usage of the more command
head: Displays the head of the file content
tail : display the tail of the file content
cut: split each line of the file by the specified F character and output
split: split the file into different small pieces
sort: sort the text content of the file
uniq: remove duplicate lines
wc: count the number of lines, words or bytes of the file
iconv: encoding format of the converted file
dos2unix: Convert DOS format files to UNIX format
grep/egrep: filter strings
join: merge by the same field of two files
vi/vim: command line text editor
tar: Manipulate tar.gz files
zip/unzip: compress/decompress zip files
rpm: manage rpm packages
yum: automatically download and install RPM packages from the specified server, install all dependent packages at once
User management commands
useradd: add user
usermod: Modify user attributes that already exist in the system
userdel: delete user
groupadd: add user group
passwd: change user password
chage: Change the validity period of the user password
id: View the user's uid, gid and the user group to which they belong
su: switch user identity
sudo: as another user (default root user)
network operation command
telnet: use the TELNET protocol to log in remotely
ssh: remote login using SSH encryption protocol
scp: copy files between different hosts
wget: command line to download files
ping: test network connectivity
ifconfig: view, configure, enable or disable network interfaces
netstat: View network status
ss: View network status
ftp: remote file transfer
Commands related to system permissions and user authorization
chmod: change file or directory permissions
chown: Change the ownership of a file or directory
charp: change file user group
umask : show or set permission mask
system management commands
top: Displays the program process in execution
df : View disk space usage
free: View memory usage
quota: View disk usage and restrictions
kill -9/-15: kill the process
crontab: Scheduled program execution
- Video recommendation -
- Scan the QR code for more information -
Daily update test video
Listen to the jokes and increase your knowledge!
JONI teacher's dry goods sharing
Long press to watch Weitian Open Class
Now, let's learn together
Add sweetheart to get soft test data~
Click the blue word to follow us