File processing commands for Linux basic commands

Source: Internet
Author: User
Tags unique id

Basic command:

Format: command [-options] [parameters]

such as: ls-l/etc


-rw-r--r--

File type Owner Permissions group permissions other people permissions


-:-Binary

Catalog D

L Link

RWX: Read and write execution



ls: Show directory file

-A All Files

-L verbose display

-h display size is calculated by K

-ld View the details of a directory without looking at its subdirectories

-I view the I-node unique ID of the directory file

mkdir: Creating a Directory

-P Recursive options

CD: Switch directories

PWD: Show current directory

RmDir: Delete Empty directory

RM: Delete files (directory also line)

-rf

-R Delete Directory

-F Force Delete

CP: Copy

-R Copy Directory

-P Reserved File attributes

MV: Cut renaming

Touch: Create an empty file

Cat: View text class capacity (for short pieces)

-N Display Line number

TAC: Inverted display

MORE: Paging display file (long file)

Blank or F-page return line-Break Q exit

Less: Paging file (long file)

Blank or F page return to line Q exit PgUp go up

/keyword search Content n search Next

Head: View the first few lines of the file (default 10 lines)

-n Specifies the number of rows

Tail: See the file after a few lines

-N: Specify the number of rows

-F: Dynamically displays the end-of-file class capacity

LN: Generating a linked file

-S Create soft connection

Example: Ln-s source file Destination file generation soft connection (shortcut)

ln source file destination file generated hard link (source file destination file sync update, copy, source file missing hard link still in, cannot cross partition)

by Ls-i to see if it is a hard link, I-node numbers are the same


This article is from the "Tommy Lin" blog, so be sure to keep this source http://linyingyong.blog.51cto.com/6609544/1775696

File processing commands for Linux basic 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.