Linux_002 _ basic operations on files and folders

Source: Internet
Author: User

Linux_002 _ basic operations on files and folders 1. the root of viewing and opening the folder file system is "/". The file system is strictly case sensitive and the name can contain a maximum of 255 characters. Except for the forward slash, all valid characters are ". "Start with the file is the hidden file pwd (print work directory) print the current working directory file View file Type touch create a blank file mkdir new folder ls-a show all files (including hidden files) ls-l display details ls-R recursive display subdirectory information ls-ld display current directory information cd .. the upper-level directory cd. current directory user's home directory "~" Cd-previous working directory 2. copy, move, delete copy cp example: cp artistninth_test art_testcp-r copy folder cp-v shows the process of moving music videos. If you specify a file name, you can rename the file to delete rmrm-I interactive, delete the rm-r folder one by one and delete the files in the folder rm-f forcibly. No warning 3. quick Search: The most common search for locate keywordupdatedb in the database is find. -name * linuxcast * find/-name * of the file containing linuxcast in the current folder *. conf in all folders. find/-perm 777 file ending with conf find/-type d file with 777 permission in all folders find file with folder type in all folders. -name a *-exec ls-l {} \; search and use the query result as a parameter to execute the command "find". Many search conditions are supported, which are commonly used as follows: -name-perm-user-group-ctime-type-size

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.