Quick dictionary of common Linux Commands

Source: Internet
Author: User
Common Linux commands: Quick query dictionary I. startup, shutdown, logon, and logout commands [login] logon [logout] logout [exit] logout [shutdown] stop system [halt] stop system [reboot] restart [poweroff] power off...
Common Linux commands: Quick query dictionary I. startup, shutdown, logon, and logout commands [login] logon [logout] logout [exit] logout [shutdown] stop system [halt] stop system [reboot] restart [poweroff] power off [sync] write content in memory to disk [lilo] install lilo start Management Program [grub] install lilo start Management program www.2cto.com 2. Shell related commands [chsh] switch Shell [history] Display Command resume [alias] set command alias [unalias] cancel command alias [which] Display Command location [type] query command type [echo] Display string or variable content [set] set/display Shell variable [printenv] display environment variable [export] set environment variable [env] set temporary environment variable [unset] release environment change Quantity [setenv] set environment variable [unsetenv] release environment variable [source] command in execution file [man] query Command Manual [info] query hypertext Command Manual [whatis] Display Command Introduction [apropos] keyword query manual 3. user management commands [su] switch to another user [useradd] append user [adduser] append user [userdel] delete user [usermod] modify user settings [chfn] modify user private 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 the ID information of the specified user [groups] display the location of the specified user The [finger] group displays the personal information of a specified user. the [mesg] switch is used to send and receive messages to others. [write] send messages to other users. [wall] send messages to all users. [talk] chat with other users. 4.. System Message-related commands [top] provide real-time monitoring of system processor status [date] Display/set current time www.2cto.com [uptime] Display system running time [arch] Display Machine core architecture (such as i386) [uname] Display operating system information [tty] Display Terminal name [last] display login/logout on 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] Display system startup message [script] save input and output to file 5. File operation commands [ls] show File list [tree] show directory tree [pwd] show current path [cd] change current path [pushd] append path to directory stack [popd] delete path from directory stack [dirs] display the contents of the directory stack. [mkdir] create Path [rmdir] delete path [cp] Copy file/directory [rm] delete file/directory [mv] move File/directory, modify file name [chown] change file/directory owner [chgrp] modify all groups of files/Directories [chmod] Modify file/directory permissions [touch] change file Time [ln] create file/directory link [find] find file [whereis] display file path [file] Query file type [size] Query file size 6. file editing command [cat] show file content [tee] output to file and screen [more] split screen display file content [less] split screen display file content [head] show File header content [tail] show file tail content [fold] fold show long lines [sort] arrange the lines of files [cmp] Compare File content [diff] show File differences [nkf] change Japanese file encoding [dd] copy the [wc] statistical text after changing the file word Count, file size and other [split] split file [paste] join file in a row [join] join file in a field join file [grep] query text [uniq] filter duplicate part show File content [tr] replace text [sed] replace text VII. compression/decompression commands [tar] compression/decompression file [compress] compression/decompression file [uncompress] Decompression [gzip] compression/decompression file [gunzip] decompress [zcat] to display the compressed file content [lha] to compress/decompress the file [uuencode] to encode the binary file as a text file [uudecode] to restore the encoded text file to a binary file 8. MS-DOS toolset www.2cto.com [mtools] Command [mdir] display file list [mcd] change current directory [mmd] New Directory [mrd] delete directory [mdeltree] delete directory tree [mcopy] copy the file [mdel] delete the file [mmove] move the file [mren] change the file or directory name [mattrib] modify the file attribute [mtype] display the file content [mdu] query the file or directory size [minfo] display disk information [mformat] format disk in MS-DOS [mlabel] set disk tag 9, control external device related command [mount] mount on device [umount] remove mounted [eject] on the device (CD/DVD, etc) [fdformat] format floppy disk [fdisk] configure/display hard disk partition [mkfs] format disk partition [fsck] check/fix disk errors [lpr] print to printer [lprm] interrupt print task [lpq] Display print task status [lpc] management/control print task [ifconfig] Display/set NIC configuration 10, process and task management related commands [ps] display running process [jobs] Display background running task [fg] switch task to foreground [bg] switch task to background [kill] stop process or task [killall] stop process or task [wait] wait process or task end of [at] set scheduled execution task [atq] display unexecuted task [atrm] delete scheduled execution task [batch] execute task when system load is reduced [nice] change priority and execute the task [nohup] in the background to execute the task, after logging out, [sleep] does not exit. sleep for a certain period of time. [crond] is used to regularly execute the program. [screen] the window manager of a physical terminal can be reused among multiple processes. 11, network management commands [netstat] display current network connection status [route] Display/set route [host] Display Network host status [hostname] Display/set current host name [ping] OK connection with remote machines [traceroute] display route information [rwho] query logon user of online machines [ruptime] query system running time of online machines [rlogin] login to remote machines [telnet] use telnet to log on to the remote machine [rsh] and send the command to the remote machine [rcp] copy the file between the remote machine [mail] receive the mail [sendmail] send the mail [mailq] confirm the mail queue [ftp] transfers the file www.2cto.com 12 using ftp, and other commands [cal] display calendar [clear] clear screen [gcc] compile C language code [as] compile [bc] calculate [rpm] Redhat package management [dpkg] Debian package management [installpkg] Slackware package installation (delete command is removepkg) [xf86setup, turboxfg, Xconfigurator] configure the X service [startx] to start the X-Window graphic interface by Li Junhao
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.