Linux命令行下文件或文件夹名字中包含空格的访问
2017-12-21 21:21
253 查看
Linux命令行下文件或文件夹名字中包含空格的访问
在Windows下命名文件或文件夹名有空格是可以的,甚至在Windows和Ubuntu虚拟机共享的文件中也可以这么做,但是在Ubuntu中空格要用下划线代替,养成一个好习惯。Linux会把空格当成分割符处理,无法找到文件或文件夹。strong@foreverstrong:~$ cd ForeverStrong/
strong@foreverstrong:~/ForeverStrong$ ll
total 20
drwxrwxr-x 5 strong strong 4096 Dec 22 10:28 ./
drwxr-xr-x 52 strong strong 4096 Dec 21 10:22 ../
drwxrwxr-x 2 strong strong 4096 Dec 22 10:18 tensorflow boy/
strong@foreverstrong:~/ForeverStrong$
strong@foreverstrong:~/ForeverStrong$ cd tensorflow\ boy/
strong@foreverstrong:~/ForeverStrong/tensorflow boy$ ll
total 8
drwxrwxr-x 2 strong strong 4096 Dec 22 10:18 ./
drwxrwxr-x 5 strong strong 4096 Dec 22 10:28 ../
strong@foreverstrong:~/ForeverStrong/tensorflow boy$
strong@foreverstrong:~/ForeverStrong/tensorflow boy$ cd ..
strong@foreverstrong:~/ForeverStrong$
strong@foreverstrong:~/ForeverStrong$ cd "tensorflow boy"
strong@foreverstrong:~/ForeverStrong/tensorflow boy$ ll
total 8
drwxrwxr-x 2 strong strong 4096 Dec 22 10:18 ./
drwxrwxr-x 5 strong strong 4096 Dec 22 10:28 ../
strong@foreverstrong:~/ForeverStrong/tensorflow boy$
strong@foreverstrong:~/ForeverStrong/tensorflow boy$ cd -
/home/strong/ForeverStrong
strong@foreverstrong:~/ForeverStrong$
strong@foreverstrong:~/ForeverStrong$ cd 'tensorflow boy'
strong@foreverstrong:~/ForeverStrong/tensorflow boy$ ll
total 8
drwxrwxr-x 2 strong strong 4096 Dec 22 10:18 ./
drwxrwxr-x 5 strong strong 4096 Dec 22 10:28 ../
strong@foreverstrong:~/ForeverStrong/tensorflow boy$
相关文章推荐
- DOS下罗列文件(文件夹名字包含空格)
- 搜索文件夹内的所有文件里包含某字符串的linux命令
- 搜索文件夹内的所有文件里包含某字符串的linux命令
- 命令行保存指定目录文件的名字(可包含文件夹文字)到txt文本文件
- linux-windows 通过SecureCRT进行远程访问和文件(包含文件夹)传输
- 搜索文件夹内的所有文件里包含某字符串的linux命令
- 在linux中文件或文件夹名字中不要有空格
- 有关“文件存储路径中有包含‘空格’的文件夹”程序会报错的问题
- 搜索文件夹内的所有文件里包含某字符串的linux命令
- C#控制台基础 directory获取一个文件夹下所有文件的名字(不包含文件夹)
- 查找文件夹下包含指定字符串的文件名字
- C#控制台基础 directory获取一个文件夹下所有文件夹的名字(不包含文件)
- iOS8正确访问mainBundle和自定义Bundle中子文件夹资源文件NSBundle
- 一次因为文件名开头包含空格而导致FTP文件一直无法下载的悲剧!
- 使用回调函数的方式 删除包含子文件夹及文件的 文件夹,删除文件夹内指定类型的文件
- 如何访问WEB-INF文件夹下的jsp文件
- nginx禁止访问.git文件的设置教程(nginx过滤.git文件夹)
- linux批量删除文件夹(包含子目录)下面的指定文件
- Java多线程查找指定文件夹下包含指定关键字的文件数量(线程池版)
- C/C++不同文件夹下包含头文件的方法及#include的使用