Will Linux report an error when using mv to move files that are being read and written?
世界只因有你
世界只因有你 2017-05-18 10:51:33

1) What will happen if you use the mv command to remove the file being read in the Linux system?
For example, file 1.txt is being read by process A. If I use the mv command to move 1.txt to another directory, will process A make an error?

2) What will happen if mv removes the file being written?
For example, file 2.txt is being written to data by process B. If you use the mv command to move 2.txt to another directory, will process B make an error?

There are two situations for mv to move files to other directories:
1) Move to a different directory in the same partition
2) Move to a different directory in a different partition

Will there be different results for mv movement in the above two situations?

Please give me some advice.

世界只因有你
世界只因有你

reply all(2)
Popular topics
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!