LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1376|回复: 14

为什么有些空文件夹内没有 . 和 .. 目录?

[复制链接]
发表于 2006-7-14 21:55:55 | 显示全部楼层 |阅读模式
用LFS LiveCD 在虚拟机上启动完成后,我发现有些空的文件夹里面没有.和..目录(使用命令ls -a).不知是为什么?
发表于 2006-7-15 09:14:42 | 显示全部楼层
截個圖看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-15 18:32:03 | 显示全部楼层
OK了.麻烦看看.谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-7-18 20:28:08 | 显示全部楼层
I don't see such problem when I boot from a real system.
  1. This is the Official Linux From Scratch LiveCD
  2. Created by:
  3. Jeremy Huntwork, Project Leader
  4. Alexander Patrakov, Maintainer, i18n
  5. Justin Knierim, Maintainer
  6. Thomas Pegg, Maintainer

  7. Version: x86-6.2-pre4
  8. ____________________________________________________________

  9. Please read the /root/README file before using this CD.

  10. All the source packages you will need to build an LFS system
  11. are located in /lfs-sources.  You can find the
  12. LFS book in /usr/share/LFS-BOOK-trunk-HTML.

  13. Support questions concerning this CD should be directed to
  14. livecd@linuxfromscratch.org

  15. Type "greeting" at any time to view this message again.

  16. Press Enter to activate this virtual console...

  17. lfslivecd:root | Tue Jul 18 20:07:59 2006 | ~
  18. # ls
  19. README  jhalfs
  20. lfslivecd:root | Tue Jul 18 20:07:59 2006 | ~
  21. # ls -a
  22. .  ..  .bashrc  .irssi  .mozilla  .muttrc  .newsrc  .subversion  .xchat2  .xinitrc  README  jhalfs
  23. lfslivecd:root | Tue Jul 18 20:08:01 2006 | ~
  24. #
复制代码

  1. This is the Official Linux From Scratch LiveCD
  2. Created by:
  3. Jeremy Huntwork, Project Leader
  4. Alexander Patrakov, Maintainer, i18n
  5. Justin Knierim, Maintainer
  6. Thomas Pegg, Maintainer

  7. Version: x86-6.2-pre4
  8. ____________________________________________________________

  9. Please read the /root/README file before using this CD.

  10. All the source packages you will need to build an LFS system
  11. are located in /lfs-sources.  You can find the
  12. LFS book in /usr/share/LFS-BOOK-trunk-HTML.

  13. Support questions concerning this CD should be directed to
  14. livecd@linuxfromscratch.org

  15. Type "greeting" at any time to view this message again.

  16. Press Enter to activate this virtual console...

  17. Last login: Tue Jul 18 20:08:30 +0800 2006 on tty2.
  18. lfslivecd:root | Tue Jul 18 20:08:46 2006 | ~
  19. # ls -al
  20. total 56
  21. drwxr-x---  7 root root 4096 Jul 18 20:08 .
  22. drwxr-xr-x 20 root root 4096 May 14 12:22 ..
  23. -rw-------  1 root root   18 Jul 18 20:08 .bash_history
  24. -rw-------  1 root root   61 May 14 12:22 .bashrc
  25. drwxr-xr-x  3 root root 4096 Apr  5 22:54 .irssi
  26. drwxr-xr-x  4 root root 4096 Apr  5 22:54 .mozilla
  27. -rw-------  1 root root  953 May 13 19:17 .muttrc
  28. -rw-r--r--  1 root root   57 May 13 19:18 .newsrc
  29. drwxr-xr-x  3 root root 4096 May 13 14:30 .subversion
  30. drwxr-xr-x  4 root root 4096 Apr  5 22:54 .xchat2
  31. -rw-r--r--  1 root root  729 May 13 18:56 .xinitrc
  32. -rw-r--r--  1 root root 7831 May 14 12:22 README
  33. drwxr-xr-x 10 root root 4096 May 14 12:09 jhalfs
  34. lfslivecd:root | Tue Jul 18 20:08:50 2006 | ~
  35. #
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-20 22:12:54 | 显示全部楼层
也可能是虚拟机的问题.但是我看到你列出的都不是空文件夹.
因为我这边是空文件夹才会出现这样的情况.
回复 支持 反对

使用道具 举报

发表于 2006-7-21 01:22:09 | 显示全部楼层
Empty directory also has no problems at all!
  1. This is the Official Linux From Scratch LiveCD
  2. Created by:
  3. Jeremy Huntwork, Project Leader
  4. Alexander Patrakov, Maintainer, i18n
  5. Justin Knierim, Maintainer
  6. Thomas Pegg, Maintainer

  7. Version: x86-6.2-pre5
  8. ____________________________________________________________

  9. Please read the /root/README file before using this CD.

  10. All the source packages you will need to build an LFS system are located in /lfs-sources.

  11. You can find the LFS book in /usr/share/LFS-BOOK-trunk-HTML.

  12. Support questions concerning this CD should be directed to livecd@linuxfromscratch.org

  13. Type greeting at any time to view this message again.

  14. Press Enter to activate this virtual console...

  15. Last login: Fri Jul 21 01:04:44 +0800 2006 on tty2.
  16. lfslivecd:root | Fri Jul 21 01:04:56 2006 | ~
  17. # ls
  18. README  jhalfs
  19. lfslivecd:root | Fri Jul 21 01:04:58 2006 | ~
  20. # mkdir TEST
  21. lfslivecd:root | Fri Jul 21 01:05:05 2006 | ~
  22. # ls
  23. README  TEST  jhalfs
  24. lfslivecd:root | Fri Jul 21 01:05:08 2006 | ~
  25. # cd TEST
  26. lfslivecd:root | Fri Jul 21 01:05:12 2006 | ~/TEST
  27. # ls -al
  28. total 8
  29. drwxr-xr-x  2 root root 4096 Jul 21 01:05 .
  30. drwxr-x--- 14 root root 4096 Jul 21 01:05 ..
  31. lfslivecd:root | Fri Jul 21 01:05:17 2006 | ~/TEST
  32. #
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-21 18:13:43 | 显示全部楼层
不是新建的空目录.
例如LFS LIVE CD刚刚启动后的/home/rsync 或者 /mnt目录
回复 支持 反对

使用道具 举报

发表于 2006-7-21 19:06:16 | 显示全部楼层
How can it be different whether the empty directory is newly created or not?  I think you should try it yourself to boot from a real machine.  It is very likely your VM is doing something strange!
  1. This is the Official Linux From Scratch LiveCD
  2. Created by:
  3. Jeremy Huntwork, Project Leader
  4. Alexander Patrakov, Maintainer, i18n
  5. Justin Knierim, Maintainer
  6. Thomas Pegg, Maintainer

  7. Version: x86-6.2-pre5
  8. ____________________________________________________________

  9. Please read the /root/README file before using this CD.

  10. All the source packages you will need to build an LFS system are located in /lfs-sources.

  11. You can find the LFS book in /usr/share/LFS-BOOK-trunk-HTML.

  12. Support questions concerning this CD should be directed to livecd@linuxfromscratch.org

  13. Type greeting at any time to view this message again.

  14. Press Enter to activate this virtual console...

  15. lfslivecd:root | Fri Jul 21 18:51:16 2006 | ~
  16. # cd /mnt
  17. lfslivecd:root | Fri Jul 21 18:51:20 2006 | /mnt
  18. # ls -a
  19. .  ..
  20. lfslivecd:root | Fri Jul 21 18:51:23 2006 | /mnt
  21. # ls -al
  22. total 8
  23. drwxr-xr-x  2 root root 4096 Jul 15 13:20 .
  24. drwxr-xr-x 21 root root 4096 Jul 16 19:58 ..
  25. lfslivecd:root | Fri Jul 21 18:51:24 2006 | /mnt
  26. #
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-7-21 20:27:18 | 显示全部楼层
我觉得不是VM的问题。VM 并不管这个东西的,你的系统怎么操作是系统的问题,换成 Win 的话,是不是也少几个东西呢?

楼主确定 iso 的 md5sum 正确不
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-21 22:54:11 | 显示全部楼层
ed029fdc74b22136193b499ca39b5978   lfslivecd-x86-6.1.1-3.iso
MD5是正确的.等有空刻成光盘在研究这个问题了.

d00m3d:为什么你上面的几个帖子中的
Type greeting at any time to view this message again

有些帖子中的greeting有加引号,有些没有加?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表