Ubuntu 中沒有名為 “copendir” 的命令。您可能是在尋找 “cp”(復制)或 “dir”(列出目錄內容)命令。如果您想要查找文件,可以使用 “find” 命令。
以下是如何使用 “find” 命令在 Ubuntu 中查找文件的示例:
打開終端(快捷鍵:Ctrl + Alt + T)
使用 “find” 命令查找文件。例如,要在當前目錄及其子目錄中查找名為 “example.txt” 的文件,請輸入以下命令:
find . -type f -name "example.txt"
這里,.
表示當前目錄,-type f
表示查找文件類型為普通文件,-name "example.txt"
表示查找名為 “example.txt” 的文件。
.
替換為目標目錄的路徑。例如,要在 “/home/user/documents” 目錄中查找名為 “example.txt” 的文件,請輸入以下命令:find /home/user/documents -type f -name "example.txt"
find . -type f -name "*.txt"
-maxdepth
選項。例如,要在當前目錄及其子目錄中查找名為 “example.txt” 的文件,但僅搜索當前目錄及其直接子目錄,請輸入以下命令:find . -maxdepth 2 -type f -name "example.txt"
這些示例應該可以幫助您使用 “find” 命令在 Ubuntu 中查找文件。如果您需要更多幫助,請隨時提問。