What are the commonly used Linux command indexes?
Xiaobian to share with you what common Linux command index, I believe most people do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
I. Start, shut down, log in, log out related commands
[login] Login
[logout] logout
[exit] logout
[shutdown] Stop the system
[halt] system
[reboot] reboot
[poweroff] Cut off the power
[sync] Write the contents of memory to disk
[lilo] install lilo startup manager
[grub] install lilo startup manager
II. Shell-related commands
[chsh] Switch Shell
[history] Display command history
[alias] Set command alias
[unalias] cancel command alias
[which] shows where the command is located
[type] Inquiry command type
[echo] Display string or variable content
[set]Set/Display Shell Variables
[printenv] Display environment variables
[export] Set environment variables
[env]Setting temporary environment variables
[unset] Releases environment variables
[setenv] Set environment variables
[unsetenv] Releases environment variables
[source] Executing commands in a file
[man]Inquiry Command Manual
[info] Query hypertext command manual
[whatis] Show command brief
[apropos] Search manual by keyword
III. Command related to user management
[su]Switch to other users
[useradd] Add User
[adduser] Add user
[userdel] Delete user
[usermod] Modify user settings
[chfn] Modify user private information
[groupadd] Add group
[groupdel] Delete group
[groupmod] Modify group settings
[passwd] Change password
[whoami] Display user name
[logname] Display login user account
[users] Show all logged in user information
[who]Query login user information
[w]Query login user information
[id]Display ID information for a specified user
[groups] Displays groups to which the specified user belongs
[finger] Display personal information for specified users
[mesg] Switch sending and receiving messages with others
[write] Send messages to other users
[wall] Send a message to all users
[Talk] Chat with other users
IV. system message related command
[top]Provides real-time status monitoring of system processors
[date] Display/set the current time
[uptime] Displays system runtime
[arch] shows the core architecture of the machine (e.g. i386)#ubuntu does not have the "arch" command, it can be replaced with "uname-m".
[uname] Displays operating system information
[tty]Display terminal name
[last] Show login/logout resume
[lastb] Show illegal login information
[dumpkeys] Displays the current keyboard configuration
[loadkeys] Change keyboard configuration
[df]Query disk usage information
[du]Query disk usage information
[dmesg] Display system startup message
[script] Save input and output to file
v. File manipulation related commands
[ls]Show file list
[tree] Display directory tree
[pwd]Show current path
[cd]Change current path
[pushd] appends path to directory stack
[popd] Remove path from directory stack
[dirs] Show contents of directory stack
[mkdir] Create Path
[rmdir] Delete Path
[cp]Copy files/directories
[rm]Delete files/directories
[mv]Move files/directories, change file names
[chown] Change the owner of a file/directory
[chgrp] Modify all groups of files/directories
[chmod] modify permissions for files/directories
[touch] Change file time
[ln]Create file/directory links
[find] Find files
[whereis] shows the pathname where the file exists
[file] Query file type
[size] Query file size
vi. File editing related commands
[cat]display the contents of the file
[tee]Output to files and screens
[more] Split screen display file content
[less] Split screen display file content
[head] Display the contents of the file head
[tail] Show the contents of the tail of the file
[fold] Fold to show long lines
[sort] arrange the lines of a file
[cmp]Compare file content
[diff] Show file differences
[nkf]Change Japanese file encoding
[dd]Copy after changing files
[wc]Count text words, file size, etc.
[split] Split file
[paste] connect files in lines
[join] join files by field
[grep] query text
[uniq] Filter duplicate parts to display file content
[tr]alternate text
[sed]alternate text
[vi]vi text editor
VII. Compression/decompression related commands
[tar]Compress/decompress files
[compress] compress/decompress files
[decompress] decompress
[gzip] compress/decompress files
[gunzip] Unzip
[zcat] Display the contents of compressed files
[lha]Compress/decompress files
[uuencode] encode binary files as text files
[uudecode] Restore encoded text files to binary files
VIII. MS-DOS toolset
[mtools] Command
[mdir] Show file list
[mcd]Change current directory
[mmd]create a new directory
[mrd]delete directory
[mdeltree] Delete directory tree
[mcopy] Copy a file
[mdel] Delete file
[mmove] Move files
[mren] Change file or directory name
[mattrib] Modify file attributes
[mtype] Display file content
[mdu]Query file or directory size
[minfo] Display disk information
[mformat] Format disk MS-DOS
[mlabel] Set disk label
IX. Command related to controlling external devices
[mount] mount
[umount] Unmount a mounted device
[eject] eject (CD/DVD, etc.)
[fdformat] Format floppy disk
[fdisk] Configure/display hard disk partitions
[mkfs] Format disk partition
[fsck] Check/fix disk errors
[lpr]print to a printer
[lprm] Interrupt Print Task
[lpq]Displays the status of print jobs
[lpc]Manage/control print jobs
[ifconfig] Display/set NIC configuration
X. Process and task management related commands
[ps]Show running processes
[jobs] Show background running tasks
[fg]Switch tasks to foreground
[bg]Switch tasks to background
[kill] aborts a process or task
[killall] aborts a process or task
[wait] Wait for the end of a process or task
[at]Set timing to execute tasks
[atq]Show tasks that have not been performed
[atrm] Delete Timed Execution Task
[batch] perform tasks when system load is reduced
[nice] Change priorities and perform tasks
[nohup] Executes tasks in the background, and does not exit after Logout
[sleep] for a certain amount of time.
[crond] Command used to execute programs periodically
[screen] Window manager that multiplexes a physical terminal between multiple processes
Xi. Network management related commands
[netstat] Displays current network connectivity status
[route] Display/set route
[host] Displays network host status
[hostname] Displays/sets the name of the current host
[ping] Confirm connection to remote machine
[traceroute] Show routing information
[rwho] Query login users of online machines
[ruptime] Query the system runtime of an online machine
[rlogin] Login to remote machine
[telnet] Log in to a remote machine using telnet
[rsh]Send commands to remote machines
[rcp]Copy files between remote machines
[mail] Receive mail
[sendmail] Send mail
[mailq] Confirm mail queue
[ftp]Transfer files using ftp
XII. other commands
[cal]display calendar
[clear] clear screen
[gcc]Compile C code
[as]compilation
[bc]computing
[rpm]Redhat package management
[dpkg] Debian package management
[installpkg] Slackware package installation (remove command is removepkg)
[xf86setup ,turboxfg,Xconfigurator] Configure X Server
[startx] Start X-Window System
The above is "What are the commonly used Linux command indexes?" All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!