Linux Small white Study notes (a) common basic commands

Source: Internet
Author: User

LS view file (equivalent to Dir under Dos) (can add path, plus-A, can view hidden files)

The CD changes the current path (same as DOS, CD + folder name within directory (relative path), cd+/new Path (absolute path), cd+. Go to the last directory, CD into the root directory)

Clear clear screen LS (equivalent to CLE under DOS)

Command "+"--help view command Help (or man + command, Iinfo + command, these two ways will go into throwing an interface Ann Q key exit, where info is most verbose)

CP Copy (copy files of other paths (must be in front of file name plus path) to current directory)

MV Move or rename (move other paths to the file (before the filename is added) to the current directory, or move the current file to a different path (you must add a path after the file name and a new name after the path) Rename))

RM Delete file (usage similar to CP)

Touch creates an empty file or updates the file time

PWD View current full path

mkdir creation of a new catalogue

RmDir Delete Empty Directory

Cat View File Contents

More screen view of the contents of the file (too many cases to consider using)

Less row-by-line view of file contents

Date Displays the current time

Cal Display Calendar

DF Display Disk Capacity (add-H to change display units)

The size of the file in the DU calculation directory (after the path is added, the current directory is not displayed by default)

Head displays the beginning of the file (followed by the path/file name, without the path default current path)

Tail display the end of the file (add path/filename, without path default current path)

================= Split Line ===============================

The above is used in the study of the command, later in the practice of the use of common commands will be filled below

PS: The above is only my study notes, insufficient hope forgive us and please correct

=====================================================

================ Leave the system ================

Restart:

Reboot

Shutdown-r now

Init 6

Shutdown

Halt

Shutdown-h now

Poweroff

Init 0

=====================================

Linux Small white Study notes (a) common basic 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.