Linux Create, delete, modify folder file commands (notes)

Source: Internet
Author: User
Tags comparison table

National character set standards and other

ASCII: (American Standard Code for Information Interchange) American Information Interchange standards codes are based on a set of the letter of a computer coding system, which is mainly used to display modern English and other Western European languages, is now the most versatile single-byte encoding system, equivalent to the International standard ISO/IEC

Iso:international Organization for Standardization International Organization for Standardization

Iec:international electrotechnical Commission International Electrotechnical Society

Chinese character set standard (GB18030,GBK, GB2312)

is the Chinese character and the binary character conversion Code Comparison table, called the national standard. Personal understanding


Unicode: Uniform code, the universal code, is a character encoding used on the computer, which is used to solve the limitations of the traditional character encoding scheme, which sets a uniform and unique binary encoding for each character in each language. To meet cross-platform, cross-language text conversion, processing requirements.


Touch

Create File command

Example: Touch name creates a file named name in the current directory

Touch-t This option is used to modify the time to a specified time,

Touch-a This option is used to modify the access time, if the plus-t option is modified to the specified access time. The time format is month and day hours

Touch-m This option to modify the modification time, plus the-t option, as described above.

Touch-c This option can not create a file if the directory does not have this file in case.

Stat This command is used to view additional details such as change time of the access time of the file, and so on.


Mkdir

Create a Directory

Example: mkdir name creates a directory named name in the current directory but cannot create a recursive directory

such as: mkdir/root/a/b/c if the front a directory is not immediately behind the directory is not created

MKDIR-P option to create a directory on no directory

Example: Mkdir-p/root/a/b/c Even though the front a directory does not, he creates it himself and creates the following directory under the directory

Mkdir-p/root/a/{b,c} creates a C and B subdirectory under the A directory, which is called curly braces to provide user-friendly operation.

Mkdir-p/root/a/{b,c}_{d,f} This command is to create a directory under the A directory b_d b_f c_d c_f Why do you know, do not explain hehe



Nano

Text Editor

Example: Nano name creates a file named name in the current directory to open a text editor to edit the file,

Enter the inside after you can enter characters, inside save exit, etc. are prompt,, follow the instructions.


RM Delete command

RM name to delete the file, you will be prompted

Rm-f force removal without prompting

RM is an alias command actually rm-i command can be viewed with type RM

To use the true RM command, use the/RM to make the real RM command available.

Rm-r Delete directory use regardless of whether it has a file but delete will be prompted

RM-FR delete a specified directory without prompting

RM-FR/Remember that this command is not available and will delete all data from the root.



RmDir used to delete a directory

RmDir name deletes the current directory named name, but the directory must be empty.

Rmdir-p a list of directories, but the directory must be empty, also known as recursive deletion, which is used for security purposes in case the user does not delete the file.

RMDIR-PV can display the delete process





Linux Create, delete, modify folder file commands (notes)

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.