当前位置:首页 > linux > 正文

linux查看路径命令(linux 设置ftp路径)

  • linux
  • 2024-03-16 06:49:52
  • 8317
Linux 查看路径命令
pwd (print working directory)
显示当前工作目录的绝对路径。
Example:
$ pwd
/home/user/Documents
cd (change directory)
改变当前工作目录。
Example:
$ cd ..
$ cd /home/user/Downloads
ls (list)
列出当前工作目录中的文件和目录。
Example:
$ ls
file1.txt file2.txt directory1
find
在给定的目录中搜索特定文件。
Example:
$ find . -name file1.txt
./file1.txt
stat
显示文件或目录的详细信息。
Example:
$ stat file1.txt
文件: file1.txt
大小: 1024
类型: 普通文件