View Single Post
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#35
Originally Posted by tanu View Post
Hi guys, this phone is bascially my introduction in to linux...
but the last step..
mv /usr/ / [press enter]
wouldn't that just take the root usr folder and move it to root.. hence no change ??
You are right in theory. In practice any sane OS will notice that you are moving a directory to the same place that is already and give you an error.


Originally Posted by Arie View Post
...
No, you're moving the file to /usr/ / and it should overwrite the file...
you are moving a folder, not a file..

Originally Posted by AlMehdi View Post
As you are located in MyDocs.. it will take the folder "/home/user/MyDocs/usr/" and move it to "/". It will then merge the content with the /usr/ already there.
Not true.. Since you say "/foldername/" then you give a hardcoded path.
If you had said "foldername/" then it is a relative path. That is, would start from the location you are already are. You can find where you are with the command "pwd"

Hope it helps.