Linux Common commands

Source: Internet
Author: User
Tags parent directory

SU User name Switch user

Shutdown–r now restart

Shutdown–h now shutdown

Init 0 shutdown

MV old filename rename new file name

MV FileName Directory Move file

Touch File name creation file

MkDir Folder name Create Folder

Rm–r Folder name Delete folder

Rm–f file name does not confirm deleting files

RM File name Delete file

PWD View current directory

CD directory to the specified directory

LS View file list

LS *xxx* find files in this folder

ll view detailed file list

Find folder name –name file name

Whereis XXX Find

Man Command Command query

Wall ' xxx ' chat

Top Check CPU

Free Check Memory

CTRL+ALT+F3 graphical interface Toggle command line

CTRL+ALT+F1 command line Toggle graphical interface

which

ls command: View file /clip list

1. Ls-a lists all files under the file, including "." The beginning of the hidden file (theLinux file hidden file is preceded by the., if present : Represents the existence of the parent directory).

2. Ls-l lists the details of the file, such as creator, creation time, file read-write permission list, and so on.

3. Ls-f add a character to the end of each file to indicate the type of the file. ' @ ' means symbolic link,' | ' Represents the FIFOS,"/" for the directory, and"=" for the socket.

4. Ls-s prints the size of the file after each file. size (sizes )

5. ls-t sort files by Time duration (time )

6. ls-a list except "." and ".." Other than the file.

7. Ls-r lists all subdirectories in the directory, equivalent to the "recursive" implementation in our programming

8. ls-l lists the link names of the files. Link (links)

9. ls-s sort files by size

CD command: directory Jump

CD/Enter system root directory

Cd.. Go to previous directory

CD ~ Enter the current user's home directory

cd/xxx/xxx/jump to the specified directory

Who command

PWD Displays the current directory

WHOAMI Display the current user ID

Who see which users are currently logged on to this computer

WHO-Q statistics current number of logged-on users

Who-b Check the latest boot time

VI Command

VI file name opens or creates a new file and places the cursor at the beginning of the first

Q! Exit

Wq Save and exit

I enter edit text mode

ESC enters command mode

H cursor moves left one character
L MOVE the cursor right one character

K Move the cursor up one line
J Cursor moves down one line

: $ to last line of file

$ To line last

Ctrl+f, turn down.

Ctrl+u on the Upside

Linux Common commands

Related Article

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.