Common commands in Linux

Source: Internet
Author: User

1. Running in the background & such as Firefox &

2. Current working directory PWD (print work directory)

3.touch Create a blank file or update the file time

4. ls

Ls-a Show all files (including hidden files, hidden files are mostly configuration files)

Ls-l Show Details

Ls-r Recursive reality file clip Directory

Ls-ld displaying directory directories and link information

5. View File type

6. Switch directories

Current directory (.)

Previous working directory (-)

Back home directory CD + carriage return (~)

7. File copy CP source file destination Path

Folder replication Cp-r (Recursive)

-V Show Copy details

8. Move/rename files or directories MV

9. Delete file RM name

Delete Folder Rm-r

Interactively Delete (prompt for deletion)-I

Force Delete-F

10. Create a file mkdir

Delete a non-empty folder RmDir


11. DateTime Date

Format Display +%y-%m-%d

Display hardware clock time Hwclock

View Calendar cal

To view the system run time uptime

12. Display input Echo

displaying file contents cat


Common commands in Linux

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.