I installed LAMP a few weeks ago, and moved a folder to the /var/www/ folder. Only realizing I didn't rename it, and I tried to fix things using the terminal.
Is there some way I can rename it?
Archived thread 1045969 from Ubuntu Dev Link Forum. Markdown source: Ubuntu_Dev_Link_Forum/thread_1045969_Cant_rename_directory_in_localhost..md
I installed LAMP a few weeks ago, and moved a folder to the /var/www/ folder. Only realizing I didn't rename it, and I tried to fix things using the terminal.
Is there some way I can rename it?
mv /path/to/old_name /path/to/new_name
amauk said: mv /path/to/old_name /path/to/new_name
Already tried that, I get a permission denied.
use sudo (gives you root privileges)
sudo mv /path/to/old_name /path/to/new_name
amauk said: use sudo
(gives you root privileges)
sudo mv /path/to/old_name /path/to/new_name
Hey! :D It worked! Thanks! Damn confusing terminal! But, its what I like about linux.
Question... Why is it you get the same results using the su command? Is su just a shorter version for sudo?
Eeek nevermind. I just looked up the answer. And they arent necessarily the same command. :/ Embarresment!