Linux Common Parts command

Source: Internet
Author: User
Tags time and date disk usage

Common Command parsing
Date Displays or sets the system time and date
Cal is used to display the calendar for the current calendar or a specified date
LS is used to display the target list, in Linux is the use of high command, you can output color highlighting to distinguish between different file types
The cat connection file is printed to the standard output device and is often used to display the contents of the file, similar to the type command.
*dir similar to LS command
basename Remove path Display file name
DirName Remove the non-directory part of the file name,
ID is used to display the actual valid user ID (UID) and group ID (GID)
*finger used to find and display user information
Useradd for creating new system users in Linux
Usermod is used to modify the user's basic information, the option parameters when used to check their own
Groupadd Creating a user group
Groupmod Modifying Group information
NEWGRP Changing the current group
Groupdel Deleting a group
GPASSWD Setting the group password
chmod three kinds of permissions to modify read and write execution of a file or directory
Chage to change the expiration date of your account and password
*chown changing the owner and owning group of a file or directory
*chgrp used to change the group to which the file or directory belongs
mkdir Create a new directory
Touch to create a new file
RM deletes one or more files or directories in a directory
RmDir used to delete empty directories
CP is used to copy one or more source files or directories to a specified file or directory
The MV is used to rename files or directories
LN is used to create a connection for the file
Nano Editor
TR replaces characters for compression and deletion
Tee is used to redirect data to a file and, on the other hand, to provide a copy of the redirected data as a stdin of subsequent commands
SU switches to another user (plus "-")
Echo echoing directly outputs the specified string
Tree lists the contents of a table
Who shows the user information currently logged in to the system displays the logon time of the terminal used by the login account and from where to log on which monitor is being used
WhoAmI used to print the current user name
The which is used to find and display the absolute path of a given command, to see if a system command exists, and where to perform the command
The *whereis is used to locate the path of the specified binaries, source code files, and man manual pages, and other related files.
What does querying a command perform what function
W is used to display a list of users who have logged in to the system and to display the instructions that the user is executing to see who is currently logged on to the system.
Last is used to display the user's most recent login information.
Lastb used to display an incorrect login list that reads, var/log files named btmp in the directory
*SCP is used to remotely copy files under Linux, similar to CP but CP is only copied natively and cannot cross the server. And the SCP transfer is encrypted.
*RSYUC commands for Remote data synchronization
*rz can upload files in bulk
*sz sending files to local
The *ps is used to report the current system's process status and can be interrupted with kill at any time.
History is used to display a specified number of command commands
Process Initialization tool under Init Linux
RunLevel to show the current operating level of the Linux system
Shutdown shutdown (-R now) restart
Stat is used to display status information for a file
PWD Displays the user's current working directory in an absolute way
Alias used to set the instruction aliases
Type is used to display the types of command commands, whether the given instruction is internal or external
File used to probe the type of a given document
Tail used to enter the trailing content in the file by default after 10 lines
Head to display the contents of the file at the beginning of the text default first 10 lines
TTY first few virtual terminals
*chsh used to replace the login system is used by the shell if you do not specify any parameters and user names, Chsh will be set up in reply
*CHFN used to change the information displayed by the finger command
passwd set the user's authentication information, including user password, password expiration time, etc.
Userdel is used to delete users and user-related files. If you do not add the option, only the user account will be deleted, the child does not delete the relevant files
Poweroff is used to shut down the computer operating system and power off
NewUsers for batch processing create multiple commands at once
DF Displays the disk space available on the disk partition, which is the default unit KB.
Du is also used to show the use of space. However, unlike DF, it is a view of the file and directory disk usage space.
Env is used to display environment variables that already exist in the system
The *export is used to output shell variables as environment variables.
Set is primarily a display of shell variables that already exist in the system, and a new variable value that sets the shell variable.
Finger used to find and display user information
CHFN used to change the command display information

Linux Common Parts command

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.