Moving a file to the root of the drive via command line
How can I move a directory to the root of a drive via command line?
In MS-DOS it would be 'move C:/GAMES/QUAKE C:/' What is the equivilent in Linux? |
Use the command mv: mv source destination, where source and destination are the obvious. Read the man page for mv ("man mv") for more info. This works for directories, as well as regular files.
|
Could you please give me and example of the command?
|
It's not difficult:
mv stuff /tmp will move the file stuff in the current directory to the directory /tmp. |
Cool, I figured it out..
mv [DIRECTORY] / |
It might not be difficult, but the question was moving it to the root of the drive, not the tmp directory.. thanks anyway.
|
You asked for an example..
In any case, please mark your thread as "solved" if you consider the question answered. |
Where is the solved button?
|
It should be under "Thread tools" at the top of this thread.
|
All times are GMT -5. The time now is 05:48 PM. |