Linux Common commands Quick Check memo

Source: Internet
Author: User
Tags clear screen message queue disk usage

Linux Common commands Quick Check memo

PS: Memo only, detailed command parameters describe yourself man

I. Start, shut down, log in, log out related commands

[Login] Login

[Logout] Log out

[Exit] Log out

[Shutdown] Stop system

[Halt] Stop system

[Reboot] Restart

[Poweroff] Power off

[Sync] writes the contents of memory to disk

[Lilo] Install Lilo startup hypervisor

[Grub] Installing the LILO Boot management program

Two. Shell-related commands

[Chsh] Toggle Shell

[history] Show command resume

[alias] set command alias

[Unalias] Canceling command aliases

[which] shows where the command is located

[Type] Query command type

[echo] Displays string or variable contents

[Set] set/show shell variables

[PRINTENV] Display environment variables

[Export] Setting environment variables

[ENV] setting temporary environment variables

[unset] Releasing environment variables

[SETENV] Setting environment variables

[unsetenv] Releasing environment variables

[Source] command in Execute file

[Man] Query command manual

[INFO] Query Hypertext command Manual

[Whatis] Show command Introduction

[Apropos] Search Manuals by keyword

Three. User Management related commands

[SU] switch to another user

[Useradd] Append user

[AddUser] Append user

[Userdel] Delete user

[Usermod] Modifying user settings

[CHFN] Modify user private information

[Groupadd] Append Group

[Groupdel] Deleting a group

[Groupmod] Modifying group settings

[passwd] Change Password

[WhoAmI] Display user name

[logname] Show login user account

[Users] Displays all logged-in user information

[who] query login user Information

[W] Query login user Information

[ID] Displays the ID information for the specified user

[Groups] Displays the group to which the specified user belongs

[Finger] Displays the personal information of the specified user

[MESG] Switch send and receive messages to others

[Write] sends messages to other users

[Wall] Send messages to all users

[talk] chatting with other users

Four. System message-related commands

[Top] provides real-time status monitoring of the system's processor

[Date] Show/set Current time

[Uptime] Shows the system run time

[Arch] shows 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] Displays illegal login information

[Dumpkeys] Displays the current keyboard configuration

[Loadkeys] Changing the keyboard configuration

[DF] Querying disk usage information

[du] Querying disk usage information

[DMESG] Display system boot message

[Script] saving input and output to a file

Five. File operation related commands

[LS] Display file list

[Tree] Display directory tree

[PWD] Displays the current path

[CD] Change the current path

[pushd] Append path to directory stack

[POPD] Removing a path from the directory stack

[Dirs] Displays the contents of the directory stack

[mkdir] Creating a path

[RmDir] Delete path

[CP] Copy files/directories

[RM] Delete files/directories

[MV] Move files/directories, modify file names

[Chown] Changing the owner of a file/directory

[CHGRP] Modifying all groups of files/directories

[chmod] Modifying the permissions of a file/directory

[Touch] Change file time

[LN] Creating a File/directory link

[Find] Find files

[Whereis] shows the path name of the file exists

[File] query files type

[Size] Query file size

Six. File editing related commands

[Cat] Display file contents

[Tee] Output to file and screen

[More] Split screen display file contents

[Less] Split screen display file contents

[Head] Displays the contents of the file header

[Tail] Show file trailer content

[Fold] folding displays long lines

[Sort] Arranges the lines of a file

[CMP] Comparing file contents

[diff] Show file differences

[NKF] Changing Japanese file encoding

[DD] Copy after change file

[WC] Statistics Text word number, file size, etc.

[Split] Split file

[Paste] Connecting files in rows

[Join] joins the file with a field

[grep] Query text

[Uniq] Filter Repeating section display file contents

[TR] Replace text

[SED] Alternate text

[VI] VI text Editor

Seven. Compress/unzip related commands

[tar] Compress/Unzip files

[Compress] compressing/extracting files

[Uncompress] Decompression

[gzip] Compress/Unzip files

[Gunzip] Decompression

[Zcat] Displays the contents of the compressed file

[LHA] Compressing/extracting files

[Uuencode] encode a binary file as a text file

[UUDecode] Restores encoded text files to binary files

Eight. MS-DOS Toolset

[Mtools] Command

[Mdir] Show file list

[MCD] Changes the current directory

[MMD] New directory

[MRD] Delete directory

[Mdeltree] Deleting a directory tree

[Mcopy] Copying files

[Mdel] Deleting files

[Mmove] Moving files

[Mren] Change file or directory name

[Mattrib] Modifying file properties

[Mtype] displaying file contents

[MDU] Querying file or directory size

[Minfo] Display disk information

[Mformat] Format the disk in MS-DOS

[Mlabel] Set disk label

Nine. Control external device related commands

[Mount] mount on the device

[Umount] Lifting the device already on Mount

[Eject] Eject (CD/DVD, etc.)

[Fdformat] Format floppy disk

[FDISK] Configuring/displaying hard disk partitions

[MKFS] Formatting a partition of a disk

[fsck] Checking/repairing disk errors

[LPR] Print to printer

[LPRM] Interrupt Print task

[LPQ] Displays the status of the print task

[LPC] Manage/control print tasks

[Ifconfig] Show/set NIC configuration

10. Process and task management related commands

[PS] shows the running process

[Jobs] Show background run tasks

[FG] Switch the task to the foreground

[BG] switch tasks to the background

[Kill] Abort a process or task

[Killall] Abort a process or task

[Wait] waits for the end of a process or task

[at] Set timed execution tasks

[ATQ] Shows tasks that have not been performed

[ATRM] Delete timed execution tasks

[Batch] performs tasks when system load is reduced

[Nice] Change priorities and perform tasks

[Nohup] performs tasks in the background and does not exit after logout

[Sleep] sleep for a certain time

[Crond] commands for executing programs on a regular basis

[Screen] can multiplex a physical terminal's window manager between multiple processes

Eleven. Network Management related commands

[Netstat] shows current network connection status

[Route] Show/set route

[Host] Displays the network host condition

[hostname] Displays/sets the name of the current host

[Ping] confirm the connection with the remote machine

[Traceroute] Show routing information

[rwho] Query the online machine login users

[Ruptime] querying system uptime for online machines

[Rlogin] Login to the remote machine

[Telnet] Login to remote machine with Telnet

[rsh] Send command to remote machine

[rcp] to copy files between remote machines

[Mail] Collect mail

[SendMail] Send mail

[MAILQ] Confirm Message Queue

[FTP] Transferring files with FTP

Twelve. Other commands

[Cal] Display calendar

[Clear] Clear screen

[GCC] compiling C language code

[As] Assembly

[BC] Calculation

[RPM] Package Management for Redhat

[Dpkg] Package Management for Debian

[Installpkg] Slackware Package Installation (delete command is removepkg)

[Xf86setup, Turboxfg,xconfigurator] Configuring x Services

[StartX] Start X-window graphical interface

Linux Common commands Quick Check memo

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.