Basic Linux knowledge-file management commands (cp, mv, rm)
In our daily work, we use the five most file operations: Copy, cut, move, rename, and delete. Therefore, we will introduce the three commands involved in the above five operations in Linux:
####### Happy weekend! #######
### Search and clear files and folders from the sea. For the column spaces, refer to Haha, ^_^ ###
####### Gold coins are not required, even though they are still poor, \ (^ o ^ )/~ ######
I. Three Methods for
Previous section content:1. System and Directory Management2. PWD command3. ... and.. Directory4. Relative path and absolute pathJob: Enter the OPT path, using the relative path method and the absolute path method to enter into the actually any
Copy mobile delete seems so simple in windows, but linux often uses a text interface, so you have to understand and learn to copy the cp delete rm mobile mv command parameters in linux.
Copy mobile delete seems so simple in windows, but linux often
To copy files, use the CP (copy) command. However, the CP command has many uses. In addition to simple replication, you can also create a connection file (that is, a shortcut), compare the new and old two files and update them, copy the entire
In the Linux system, all files, even the CD-ROM also as a file, to use the CD first to establish a directory, and then by mounting to operate the disc, even the mouse, the keyboard is considered a file. Therefore, it is important to learn the
We use the most of the files in our daily work I think it should be copy, cut, move, rename, delete these five. So today we mainly introduce the three commands involved in implementing the above five operations in Linux: CP, MV, RM.CP is a shorthand
The operation of the text file is very basic and important, and you will be more comfortable with manipulating the text after mastering them. To copy a file, use the CP command, the CP command can be used in many ways, in addition to simple
CP (copy an archive or directory)[Root @ Linux ~] # Cp [-adfilprsu] Destination)[Root @ Linux ~] # Cp [Options] source1 source2 sourc4 .... DirectoryParameters:-A: equivalent to-PDR;-D: if the source file is a link file, copy the link file property
> For reprinting, please specify the Source: piao2010's blog, the drifting code. Thank you! Pai_^
> Link: Linux cp mv rm ln command impact on inode and dentry
When reading the File System Section of "Advanced Programming in UNIX environment", I
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.