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 name can be up to 255 characters, except for the forward slash, are valid characters. the file starting with pwd (printworkdirectory) is a hidden file. print the current working directory fi... 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
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