問題描述
如何使用終端重命名 linux 中的目錄? (How can I rename a directory in linux with terminal?)
場景:我通過 ssh 連接到遠程服務器並創建了一個名為 helloworld/ 的目錄,在使用了一段時間後,我想將其重命名為hello_world/ 我想知道如何輕鬆做到這一點。
我在網上找了很多資源,但我認為這是一件很簡單的事情,所以我想會有一個簡單的方法來實現這一點。
請告訴我
參考解法
方法 1:
mv <source_directory> <target_directory>
(by AugustusCaesar、T.G.)