Copy, move, delete, soft links, hard links principle

Copy is a streaming file to another file stream, essentially new

Move
if in the same partition, moving the file, inode information files will not change, if the cross-partition, this partition will become a deleted file, create a new file in another partition, copy the data stream past

Move files with partition

Delete
to delete the linux is very fast, the new two G files is slow, but quickly deleted, because not just a symbol used to identify the file's inode when deleted, so that other processes can write here the data, delete files after the general, as long as no further data is written, all the data can get it back

Soft link
is actually a shortcut

Hard link
copies of documents, each a hard link, reference file count is incremented by one,

Guess you like

Origin www.cnblogs.com/0916m/p/11504196.html