SSH Rename Folder

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
609
Points
28
I want to change name of a folder on my VPS, how can I use SSH rename it?
can anyone guide me with commands and an example?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Code:
mv old_folder_name new_folder_name
 

energizedit

Well-known member
Registered
Joined
Dec 13, 2016
Messages
259
Points
18
+1 for LJSHost simple at the command prompt cd to the directory above the one that you want to rename. Then #mv oldfoldername newfoldername

mv = move but you are actually mv it to another name :salute:
 

kevinhng86

Member
Registered
Joined
Jan 12, 2017
Messages
58
Points
0
+1 for everyone in this post.

To use the mv command you do not need to be anywhere in the vicinity of the folder, you just need to know it full path. However if you are above it's folder you can use like the above mention.

Otherwise you can use "mv /path/to/oldfoldername /path/to/newfoldername" . Will also produce the same result. This however you can move rename and also move the folder to a new location if did desired so.
 
Latest Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top