Linux Common commands

Source: Internet
Author: User
Tags clear screen

Linux Basic Operations Command
Ls View all files and folders under the current path
Touch ' file name ' Create an empty file
Mkdir Create a folder
Pwd View the absolute path to the current directory
RM ' File name ' Delete the specified file
RM ' folder '-R Delete the specified folder
Cd Switch directories
CP ' files/folders ' Specify path Copy files/folders to a specified directory
MV ' File/folder ' specified path Move files/folders to the specified directory
Tree Display a table of contents in tree form
Ifconfig View network information such as IP address
Ping Test whether the network is healthy
Clear Clear Screen
-L Display as a list
-H Display size
-A Show all, that is hidden also can see
Cat View File Contents
More Split-screen display of file contents
F View down
B View up
Q Exit
| Indicates that the pipe is meant to link two commands such as LS | More split screen display
Group Search for content in files such as: Grep-n ' content to search ' file name
Find Search for a developed file under a path {1:-name search by filename 2:-size Search by file size
TAR-CVF ' package name. tar ' file name Packaged
TAR-XVF ' package name ' Unpack
GZIP-ZCVF ' package name. tar.gz ' file name Pack first and then compress
GZIP-ZXVF ' package name. tar.gz ' Unzip
Command--help Help documentation
W.H.O. View all logged-on users in the current system
WhoAmI View the user currently in use
Shutdown Shutdown
Shutdown-h now Turn off restart now
SSH User name @ip address Remotely log on to a computer
Hostname Display host Name
Uname Display System Information
Netstat displaying network status information
Kill Kill process
Ps Show process Status
Su ' account name ' Switch accounts
passwd ' account name ' Modify User Password
Useradd ' account name '-m Automatically create an account and automatically create a folder with the same name as the account name in the/home path, which is the family directory of the account
Exit Launch Current Account

Linux Common commands

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.