I am trying to move a html file to var/www, but i don't have permission. does anyone know the sudo command I can use move files from on folder to another?
thanks
I am trying to move a html file to var/www, but i don't have permission. does anyone know the sudo command I can use move files from on folder to another?
thanks
mv /pathToFile/fileToMove /pathToNewLocation/
mv /pathToFile/fileToMove /pathToNewLocation/newFileName
mv -r /pathToFile/folderToMove /pathToNewLocation/
mv -r /pathToFile/folderToMove /pathToNewLocation/newFolderName
Hope this helps
Code:sudo mv file/you/want/to/move.html /var/www/
cheers, that worked well
Note that you can use "cp" to copy, rather than "mv" to move, if you want.
If you're using a GUI, you can open a file browser as root and then you'll have permissions to drag and drop files into that folder:
Code:gksudo nautilus
I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.
Bookmarks