A. Start, shutdown, login, log out related commands
<login> Login
<logout> Log Out
<exit> Log Out
<shutdown> Stop System
<reboot> reboot
<poweroff> Power off
<sync> write the contents of memory to disk
<lilo> Install Lilo startup management Program
<grub> Install Lilo startup management Program
two. Shell-related commands
<chsh> Switch Shell
<alias> set Command alias
<unalias> Cancel Command Alias
<which> Show where the command is located
<type> Query Command type
<echo> display string or variable contents
<set> set/Show Shell variables
<printenv> Display Environment variables
<export> Setting Environment variables
<env> Setting TEMP Environment variables
<unset> Releasing environment variables
<setenv> Setting Environment variables
<unsetenv> Releasing environment variables
<source> implementation of the order in the document
<man> Search Command Manual
<info> Query Hypertext Command Manual
Introduction to <whatis> Display commands
<apropos> Search Manual by keyword
three. User Management related commands
<su> Switch to another user
<useradd> Additional users
<adduser> Additional users
<userdel> Delete Users
<usermod> Modify user Settings
<chfn> Modify user's personal information
<groupadd> Append Group
<groupdel> Delete Group
<groupmod> Modify Group settings
<passwd> Change Password
<whoami> Display user Name
<logname> Display Login user account
<users> Display all login user information
<who> Query Login User Information
<w> Query Login User Information
<id> Display ID information for the specified user
<groups> show groups of specified users
<finger> display personal information for a specified user
<mesg> switch to send and receive messages with others
<write> send messages to other users
<wall> send messages to all users
<talk> Chat with other users
four. System Message related commands
<date> Show/Set Current time
<uptime> Display System Running time
<arch> Display the core architecture of the machine (e.g. i386)
<uname> Display operating System Information
<tty> Display terminal name
<last> Show Login/logout in resume
<lastb> Display Illegal login information
<dumpkeys> Display current keyboard configuration
<loadkeys> Change keyboard configuration
<df> Query Disk usage information
<du> Query Disk usage information
<dmesg> Show system Startup messages
<script> save input and output to file
Five. File Operation related command
<ls> Display file list
<tree> Display directory tree
<pwd> Show Current Path
<cd> Change Current path
<pushd> append path to directory stack
<popd> remove path from directory stack
<dirs> Display the contents of the catalog stack
<mkdir> Create Path
<rmdir> Delete Path
<cp> Copy files/directories
<rm> Delete files/directories
<mv> Move files/directories, modify file names
<chown> change the owner of a file/directory
<chgrp> modify all groups of files/directories
<chmod> modify File/directory permissions
<touch> Change file time
<ln> Create File/directory Links
<find> Find Files
<whereis> shows the path name where the file exists
<file> Query File types
<size> Query File size
Six. File Edit related commands
<cat> Display file contents
<tee> output to files and screens
<more> Screen Display file contents
<less> Screen Display file contents
<tail> display the tail content of the file
<fold> collapse Display long line
<sort> arrange the rows of files
<cmp> Compare file Contents
<diff> Show file differences
<nkf> Change Japanese file encoding
<dd> Copy after change file
<wc> statistics Text Word number, file size, etc.
<split> Split File
<paste> Connect files with rows
<join> Connect files with fields
<grep> Query Text
<uniq> Filter Repeat section to display file contents
<tr> Alternate text
<sed> Alternate text
Seven. Compression/decompression Related commands
<ar> Compressed/uncompressed files
<tar> Compressed/uncompressed files
<compress> Compressed/uncompressed files
<uncompress> Decompression
<gzip> Compressed/uncompressed files
<gunzip> Decompression
<zcat> Display the contents of a compressed file
<lha> Compressed/uncompressed files
<uuencode> encode binary files as text files
<uudecode> Restore encoded text files to binary files
Eight. MS-DOS tool Set [mtools] command
<mdir> Display file list
<mcd> Change Current directory
<mmd> New Directory
<mrd> Delete Directory
<mdeltree> Delete directory tree
<mcopy> Copy Files
<mdel> Delete Files
<mmove> Moving files
<mren> change file or directory name
<mattrib> Modify File properties
<mtype> Display file contents
<mdu> query file or directory size
<minfo> Display disk Information
<mformat> format disks in MS-DOS mode
<mlabel> Set Disk label
Nine. Control the external equipment related command
<mount> mount on Equipment
<umount> lifting equipment already on Mount
<eject> Eject (CD/DVD, etc.)
<fdformat> Format Floppy disk
<fdisk> Configure/Display hard disk partitions
<mkfs> Format Disk Partitions
<fsck> Check/Repair Disk errors
<lpr> Print to Printer
<lprm> Interrupt Print Task
<lpq> Show status of print tasks
<lpc> Management/Control printing tasks
<ifconfig> Show/Set NIC configuration
10. Process and task management related commands
<ps> Show the running process
<jobs> Show background Run tasks
<fg> switch the task to the front desk
<bg> switch the task back to the background
<kill> abort a process or task
<killall> abort a process or task
<wait> wait for the end of a process or task
<at> Set timed Tasks
<atq> show tasks that have not yet been performed
<atrm> Delete timed Tasks
<batch> perform tasks when system load is reduced
<nice> change priorities and perform tasks
<nohup> in the background to perform the task, logout do not quit after
<sleep> sleep a certain amount of time
11. Network Management related commands
<netstat> Show current network connection status
<route> Show/Set Routing
<ping> confirm the connection with the remote machine
<traceroute> Display Routing Information
<rwho> Search users of online machines
<ruptime> Query the system running time of the online machine
<rlogin> Login to remote machine
<telnet> Login to remote machine with Telnet
<rsh> send commands to remote machines
<rcp> copying files between remote machines
<mail> Receive mail
<sendmail> Send mail
<mailq> Confirm message queues
<ftp> Transfer files using FTP
12. Other Orders
<cal> Display Calendar
<clear> Clear Screen
<gcc> Compiling C language code
<as> Assembly
<bc> calculation
<rpm> Redhat Package Management
<dpkg> Package management for Debian
<installpkg> Slackware Package Installation (delete command is removepkg)
<XF86Setup,turboxfg,Xconfigurator> Configure X Server
<startx> Start X-window System
Attached: Combination command
redirection, such as
$ ls-l/bin > Ls-output
$ more Ls-output
Pipe commands, such as
$ Cat File1 File2 | Sort | Uniq