linux中奇怪的问题
时间:2011-08-29
来源:互联网
linux下我打开了一个终端,然后输入cd命令,想打开一个文件,可奇怪的是“文件明明有,终端上的信息却说没有那个文件”,我也添加权限了,可是不管用,求高手解决!!
终端的命令为:
[root@localhost root]# cd /root
[root@localhost root]# ls
anaconda-ks.cfg file install.log.syslog root
Desktop install.log local yizhi
[root@localhost root]# cd file
bash: cd: file: 没有那个文件或目录
[root@localhost root]# chmod 777 file
chmod: 无法取得 ‘file’ 的属性: 没有那个文件或目录
[root@localhost root]#

终端的命令为:
[root@localhost root]# cd /root
[root@localhost root]# ls
anaconda-ks.cfg file install.log.syslog root
Desktop install.log local yizhi
[root@localhost root]# cd file
bash: cd: file: 没有那个文件或目录
[root@localhost root]# chmod 777 file
chmod: 无法取得 ‘file’ 的属性: 没有那个文件或目录
[root@localhost root]#
作者: 梧桐凤影@ 发布时间: 2011-08-29
梧桐凤影@
抱歉,问题刚解决,貌似文件名不能用file来直接命名,刚改了一下就好了!
抱歉,问题刚解决,貌似文件名不能用file来直接命名,刚改了一下就好了!
作者: 梧桐凤影@ 发布时间: 2011-08-29
我这就行啊
pangliang@bogon:~/temp$ mkdir file
pangliang@bogon:~/temp$ cd file
pangliang@bogon:~/temp/file$ cd ..
pangliang@bogon:~/temp$ chmod 777 file
pangliang@bogon:~/temp$ ls -ld file
drwxrwxrwx 2 pangliang users 4096 8月 29 22:16 file
pangliang@bogon:~/temp$ cd file
pangliang@bogon:~/temp/file$ cd ..
pangliang@bogon:~/temp$ chmod 777 file
pangliang@bogon:~/temp$ ls -ld file
drwxrwxrwx 2 pangliang users 4096 8月 29 22:16 file
作者: pl_014 发布时间: 2011-08-29
?呵呵,好奇怪啊
作者: 梧桐凤影@ 发布时间: 2011-08-29
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28