The common commands summed up by the "Linux for this study"

Source: Internet
Author: User
Tags chmod diff echo command terminates

Chapter II

The echo command is used to display the value of a string or output variable in the terminal, in the form of "echo [string | $ variable]".

The Date command is used to display and set the system's time or date in the format: "Date [options] [+ Specified format]".

The reboot command is used to reboot the system in the format: "Reboot".

The poweroff command is used to shut down the system in the format: "Poweroff".

The wget command is used to download the network file in the terminal format: "wget [parameter] download address".

The PS command is used to view the status of processes in the system, in the form of "PS [parameters]",

The top command is used for dynamic monitoring of process activity and system load information, in the form of "top".

The pidof command is used to query the PID number value of a specified service process in the format: "pidof [parameter] [service name]".

The KILL command terminates a service process with a specified PID number in the form: kill [Parameter] [process PID number].

The killall command terminates all processes corresponding to a service of a specified name in the format: "killall [parameter] [process name]".

Ifconfig is used to obtain information such as NIC configuration and network status: Format "ifconfig [network device] [parameters]".

The uname command is used to view information such as the system kernel and system version, in the form "uname [-a]".

The uptime command is used to view the system's load information in the format: "Uptime".

The Free command is used to display information about the amount of memory used in the current system, in the form "free [-h]".

The who command is used to view user terminal information for the currently logged on host, in the format: "Who [parameters]".

The last command is used to view all system login records in the format: "Last [parameters]".

The history command is used to display history-executed commands in the format: "History [-c]".

The sosreport command is used to collect system configuration and diagnose information and output the conclusion document in the format: "Sosreport".

The pwd command displays the current working directory in the format: "pwd [Options]".

The CD command toggles the work path in the format: "CD [Directory Name]".

The ls command is used to display the file information in the directory in the format: "LS [options] [file]".

The Cat command is used to view plain text files (shorter) in the format: "Cat [Options] [Files]".

The more command is used to view plain text files (longer) in the format: "More [options] files."

The head command is used to view the first n rows of a plain text document in the form: head [options] [file].

The Tail command is used to view the following n lines of a plain text document or to continuously refresh the content in the format: "tail [options] [file]".

The TR command replaces characters in a text file in the form: "tr [original character] [target character]".

The WC command is used to count the number of lines, words, and bytes in the specified text, in the format WC [parameter] text.

The Stat command is used to view information such as the specific storage information and time of the file, in the format "stat file name".

The Cut command is used to extract text characters by "column" in the form: "cut [Parameter] text."

The diff command is used to compare the differences between multiple text files in the format: "diff [Parameter] file."

The Touch command is used to create blank files and set up files in various times, in the format: "Touch [options] [Files]".

The mkdir command is used to create a blank folder in the format: "mkdir [Options] directory."

The CP command is used to copy files or directories in the format: CP [option] source file destination file.

MV command for mobile files or renamed, the format is: "MV [options] source file [target path | target filename]".

The RM command deletes a file or directory in the form: RM [options] file.

The DD command is used to specify the size of a copy file or to specify a transform file in the format: "dd [parameters]".

The file command is used to view the types of files, in the format: "File filename."

The tar command is used to package or decompress a file in the format: "Tar [options] [file]".

The grep command is used to search for keyword searches for text content in the format: "grep [Options] [file]".

The find command is used to locate files in the Linux system according to the specified criteria, in the form of "find [Lookup Path] for conditional operations".

 

Fifth Chapter

The useradd command is used to create a new user in the format: "useradd [option] username."

The groupadd command is used to create a group in the format: "groupadd [option] group name."

The usermod command modifies the user's properties in the format "usermod [option] User name."

The passwd command modifies the user's password in the form: "passwd [option] [user name]".

The userdel command is used to delete the user, in the format: "userdel [option] username."

The chmod command is used to modify the permissions of a file or directory, in the form of "chmod [parameter] permission file or directory name."

The chown command is used to modify the owning and owning group of a file or directory, in the form: "Chown [parameter] is the owner: the owning group file or directory name."

The chattr command is used to set the file's hidden permissions in the format: "chattr [parameters] file."

The lsattr command is used to display hidden permissions for files in the format: "lsattr [parameters] file."

The setfacl command is used to add or modify ACL rules in the format: "setfacl [parameter] file name."

The getfacl command is used to display ACL rules for a file, in the form of "Getfacl file name."

The SU command is designed to address the need to switch user identities

sudo service is used to give ordinary users additional rights to complete tasks that the original Superuser can accomplish, in the form of "sudo [parameter] command name".

Sixth Chapter

The mount command is used to mount the file system in the form of Mount file system mount directory.

The umount command is used to undo a device file that is already mounted, in the form: "Umount [mount point/Device file]".

The fdisk command is used to manage disk partitions in the form: "fdisk [disk name]".

The du command is used to view the amount of data consumed by a file in the format: du [options] [file].

The Xfs_quota command is used to manage the quota hard disk quota for the XFS file system, in the format: "quota [parameter] Quota file system."

The Edquota command is used to edit the user's quota quota limit in the form: "Edquota [parameters] [user]".

The ln command is used to create a linked file in the format: "ln [option] target".

 

Seventh Chapter

The

mdadm command is used to manage system software RAID hard disk arrays in the format: "Mdadm [mode] <raid device name > [options] [member device name]".

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.