Hy guys, I use M.V commend for move my file in Linux operating system. For example I want to move my bodyguard file form A folder to B folder. But my Linux can not move it. I use M.V ( in linux commend line ) bodyguard ( file name ) B ( B= where my file is being moved ) commend. I am so confused about it. Why I face this problem? How can I solve this? Please help me.
I cannot move my file in Linux operating system
Instead of using the "mv" (move) command via the terminal I suggest you use the graphical interface. Here's ubuntu.com's guide on how to do it in several simple ways:
Download Link1
If you still cannot move your file using the above guide, then it's possible that the folder that you are trying to move your file to has a read-only attribute. If that's the case, you will have to change the permissions on the target folder. Here's the guide on how to do that:
Download Link2
The above guides are for Ubuntu 11.10 but will work on older versions of Ubuntu (or any other Linux variant with only some minor differences).
Hope this helps.
Answered By
Amber1
0 points
N/A
#114242
I cannot move my file in Linux operating system
 Mr. John Anderson,
In this case file will move to directory ‘B’ (according to example you mentioned) if and only if ‘B’ directory lies inside directory ‘A’, else it is just renaming file ‘bodyguard’ to filename ‘B’ and to verify you may check the contents of the file ‘B’.
The right way to move a file from one directory/folder to other is to give exact path of destination folder. For example if you want to move the same file from folder ‘A’ to folder ‘B’ do the following steps.
-
Check current directory through command ‘pwd’ (you must be in directory ‘A’.
-
Use mv command to move file as followsÂ
      ‘#mv bodyguard  /home/xyz/B (full path of folder ‘B’). Â
It should work.