如何使用終端重命名 linux 中的目錄? (How can I rename a directory in linux with terminal?)


問題描述

如何使用終端重命名 linux 中的目錄? (How can I rename a directory in linux with terminal?)

場景:我通過 ssh 連接到遠程服務器並創建了一個名為 helloworld/ 的目錄,在使用了一段時間後,我想將其重命名為hello_world/ 我想知道如何輕鬆做到這一點。

我在網上找了很多資源,但我認為這是一件很簡單的事情,所以我想會有一個簡單的方法來實現這一點。

請告訴我


參考解法

方法 1:

mv <source_directory> <target_directory>

(by AugustusCaesarT.G.)

參考文件

  1. How can I rename a directory in linux with terminal? (CC BY‑SA 2.5/3.0/4.0)

#linux-kernel #linux-mint #linux #ubuntu-18.04 #ubuntu






相關問題

選擇 Linux I/O 調度程序 (Selecting a Linux I/O Scheduler)

Android可加載內核模塊錯誤:賦值使指針從沒有強制轉換的整數 (Android Loadable Kernel Module Error: assignment makes integer from pointer without a cast)

文件描述符中實際存儲了多少信息? (How much information is actually stored in a file descriptor?)

hrtimer mengulangi tugas di kernel Linux (hrtimer repeating task in the Linux kernel)

我可以在 C 代碼中使用 LKM 內核代碼中的“getpwuid”嗎? (Can I use "getpwuid" from kernel code in LKM in c code?)

將傳入數據包注入網絡接口 (Injecting an incoming packet to a network interface)

無法從 D3 睡眠狀態喚醒 pci 總線 (Unable to wake pci bus form D3 sleep satate)

在 Linux 中使用 DMA 的最簡單方法 (Easiest way to use DMA in Linux)

Linux I2C 通信問題 (Linux I2C communication issues)

理解 perf stat 輸出中的數字 (Make sense of numbers in perf stat output)

我如何在 amazon Linux AMI 上找到我的 Linux 發行版? (How i could find my Linux distribution on amazon Linux AMI?)

將參數傳遞給系統調用 (Passing arguments to system calls)







留言討論