Summary of linux commands-Multi-operation is the truth, linux ---

Source: Internet
Author: User

Summary of linux commands-Multi-operation is the truth, linux ---

Ps: Actually, to learn the linux system, contact us more about the Windows system we are using, so that we can get twice the result with half the effort;

1. Start, shut down, log on, and log out commands

[Login]: Logon

[Logout]: logout

[Shutdown]: stops the system.

[Halt]: stops the system.

[Reboot]: restart

[Poweroff]: power off

[Sync]: Write the content in the memory to the disk.

[Lilo]: Install lilo to start the hypervisor.

[Grub]: Install lilo to start the hypervisor.

2. Shell commands

[Chsh]: Switch Shell

[History]: displays the command resume.

[Alias]: set command alias

[Unalias]: cancels the command alias

[Which]: display the command location

[Type]: query command types

[Echo]: Display string or variable content

[Set]: set/Display Shell Variables

[Printenv]: Display Environment Variables

[Export]: Set Environment Variables

[Env]: Set temporary environment variables

[Unset]: Release Environment Variables

[Setenv]: Set Environment Variables

[Unsetenv]: releases environment variables.

[Source]: The command in the 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]: deletes a user.

[Usermod]: Modify user settings

[Chfn]: modifies user private information.

[Groupadd]: append Group

[Groupdel]: deletes a group.

[Groupmod]: Modify group settings

[Passwd]: change the password

[Whoami]: displays the user name

[Logname]: displays the logon User Account

[Users]: displays information about all logon users.

[Who]: Query login user information

[W]: Query login user information

[Id]: displays the ID of a specified user

[Groups]: displays the group to which the specified user belongs.

[Finger]: displays the personal information of a specified user.

[Mesg]: Switch to send and receive messages from others

[Write]: send messages to other users

[Wall]: send messages to all users

[Talk]: chat with other users

V. File Operation commands

[Ls]: displays the file list.

[Tree]: displays the directory tree.

[Pwd]: displays the current path

[Cd]: change the current path

[Pushd]: append path to directory Stack

[Popd]: deletes a path from the directory stack.

[Dirs]: displays the contents of the Directory stack.

[Mkdir]: create a path

[Rmdir]: delete path

[Cp]: copy a file/directory

[Rm]: delete a file/directory

[Mv]: Move the file/directory and modify the file name.

[Chown]: Change the owner of a file/directory.

[Chgrp]: modifies all groups of files/directories.

[Chmod]: Modify file/directory permissions

[Touch]: Change the file time

[Ln]: create a file/directory Link

[Find]: find Files

[Whereis]: displays the path name of the file.

[File]: Query file types

[Size]: query the file size

6. File editing commands

[Cat]: displays the File Content

[Tee]: output to files and screens

[More]: displays the file content on a split screen.

[Less]: displays the file content on a split screen.

[Head]: displays the content of the file header.

[Tail]: displays the content at the end of a file.

[Fold]: fold and show long rows

[Sort]: arrange the rows of files.

[Cmp]: Compare file content

[Diff]: display file differences

[Nkf]: Change the Japanese file encoding

[Dd]: copy the changed File

[Wc]: count the number of text words, file size, etc.

[Split]: split the file

[Paste]: Connecting files in rows

[Join]: Connecting files with Fields

[Grep]: query text

[Uniq]: Filter duplicate parts to display file content

[Tr]: Replace text

[Sed]: Replace text

[Vi]: vi Text Editor

VII. Compression/Decompression commands

[Tar]: Compressed/decompressed files (archive-used with gzip & gunzip)

[Compress]: compression/decompression of Files

[Uncompress]: Extract

[Gzip]: Compressed/decompressed files (commonly used)

[Gunzip]: Decompress (commonly used)

[Zcat]: displays the compressed file content.

[Lha]: compressing/extracting files

[Uuencode]: encodes a binary file into a text file.

[Uudecode]: Restores an encoded text file to a binary file.

8. MS-DOS tool set

[Mdir]: displays the file list.

[Mcd]: change the current directory

[Mmd]: create a directory

[Mrd]: delete a directory

[Mdeltree]: deletes a directory tree.

[Mcopy]: copy an object

[Mdel]: delete an object

[Mmove]: Move a file

[Mren]: Change the file or directory name

[Mattrib]: modifying file attributes

[Mtype]: displays the file content.

[Mdu]: query the file or directory size

[Minfo]: Displays disk information.

[Mformat]: Format disk in MS-DOS

[Mlabel]: Set disk labels.

9. commands for controlling external devices

[Mount]: mount the device

[Umount]: detaches a mounted device.

[Eject]: pop-up (CD/DVD, etc)

[Fdformat]: format a floppy disk.

[Fdisk]: Configure/display Hard Disk Partitions

[Mkfs]: Format Disk Partitions

[Fsck]: Check/fix disk errors

[Lpr]: print to printer

[Lprm]: interrupts the print task.

[Lpq]: displays the status of the print task.

[Lpc]: Manage/control print tasks

[Ifconfig]: Display/set NIC Configuration

10. Process and task management commands

[Ps]: displays running processes.

[Jobs]: displays Tasks running in the background.

[Fg]: Switch the task to the foreground

[Bg]: Switch the task 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 scheduled task execution

[Atq]: displays unexecuted tasks

[Atrm]: deletes a scheduled task.

[Batch]: executes a task when the system load is reduced.

[Nice]: Change Priority and execute tasks

[Nohup]: executes tasks in the background and does not exit after Logout.

[Sleep]: sleep for a certain period of time

[Crond]: The command 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]: displays the current network connection status.

[Route]: Display/set routes

[Host]: displays network host information

[Hostname]: displays/sets the name of the current host.

[Ping]: confirm the connection with the remote machine

[Traceroute]: displays route information.

[Rwho]: Query login users of online machines

[Ruptime]: query the system running time of online machines

[Rlogin]: log on to a remote machine

[Telnet]: use telnet to log on to a remote machine.

[Rsh]: send commands to remote machines

[Rcp]: copying files between remote machines

[Mail]: receive mail

[Sendmail]: send an email

[Mailq]: confirm the mail queue

[Ftp]: Transfers files using ftp

12. Other commands

[Cal]: Display calendar

[Clear]: clear screen

[Gcc]: compile C language code

[As]: Assembly

[Bc]: Computing

[Rpm]: Redhat package management

[Dpkg]: Debain package management

Ps: Actually, to learn the linux system, contact us more about the Windows system we are using, so that we can get twice the result with half the effort;

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.