Linux System basic Command use

Source: Internet
Author: User
Tags clear screen

SSH user name @ip address Xshell Login

Useradd User name Add user

Su-user name jump to user record

[Email protected] ~]#

Current logged on user @ hostname current directory

~ Represents the home directory of the currently logged in user

Man command to view command Help information

Ifconfig Viewing network interface status

IP Addr View IP address

IP a View IP address

Route-n View routing Status

Service Network restart restart NIC

Clear Clear Screen

PWD Print current directory

CD Switch Directory

LS lists file directories and file information

-l long Format display file (contains properties, time ... )

-a displays all files in this directory (including hidden files)

-D View the directory itself

Ls-l = ll

Under Linux systems, file types (three common types)
-* File
d * Directory (similar to Win7 folder)
L * Connection (similar to Win7 under the shortcut)

Cat View the contents of the file

Touch build files (rarely used, basically VI)

mkdir Creating a Directory

-P recursive creation of multilevel directories

RM Delete a file or directory

-R Delete directory (not add delete file)

-F Force Delete

CP source File destination directory * Copy files or directories

-r Copy Directory (does not add to copy files)

-a copy all (include properties, permissions ...) )

MV Move or rename files

More Paging View file contents

Head-5 file name to view the first 5 lines of information

tail-10 file name View 10 lines of information

Du statistics directory or file capacity

-S

-H

grep finds a matching string in a file

-N Display Line number

Find files or directories in the directory that match the criteria

Syntax: Find target matching criteria for find (can not use quotation marks)

-name

-type d (directory) f (file)

Linux System basic Command use

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.