Take notes on Linux private food from laruence (2) -- Basic commands

Source: Internet
Author: User
Ls: list files and directories ls-l: list file and directory details ls-a: list all files and directories (including hidden directories) cp: copy file cp source file directory target directory cp-r: copy directory mv: move or rename file move and modify file name

Ls: list files and directories

Ls-l: lists detailed information about files and directories.

Ls-a: lists all files and directories (including hidden directories)

Cp: copy an object

Cp source file directory target Directory

Cp-r: copy Directory

Mv: move or rename a file

Move and modify the file name

Rm: delete an object

Rm-f: force delete

Touch: create an empty file or update the file time (if the file already exists)

File update time

Cd: change the current path

Absolute path: start with the root directory cd/home

Relative path: relative to the current directory cd home

Pwd: view the current full path

Mkdir: create a directory

Rmdir: delete an empty directory.

Rm-rf: delete directories and files

Cat: View files

More: View files on screen

Less: View files row by row

Date: displays and changes the current system time.

Cal: displays the system calendar.

Df: View disk information

Df-h

Du: disk space occupied by computing files or directories

Du-h

Head: view the content at the beginning of the file (10 rows by default)

Tail: View part of the content behind the file

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.