LinuxSir.cn,穿越时空的Linuxsir!

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

用ls怎么会提示这么多东西。

[复制链接]
发表于 2006-10-23 10:03:12 | 显示全部楼层 |阅读模式
[root@localhost ~]# ls
anaconda-ks.cfg
displays information about a selection of the active processes. If you want
election and the displayed information, use top(1)
initrd.img
install.log
install.log.syslog
- report a snapshot of the current processes.
vmlinuz
windows.iso
[root@localhost ~]#

为什么我用ls会这样的?
发表于 2006-10-23 10:13:49 | 显示全部楼层
这就是你当前目录下(用户的home目录)的文件,正常显示呀。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-23 10:37:40 | 显示全部楼层
为什么用户的home目录用ls一定会显示这些的呢?
回复 支持 反对

使用道具 举报

发表于 2006-10-23 11:33:06 | 显示全部楼层
anaconda-ks.cfg  这个是安装后生成的无人职守安装的参考文件
initrd.img  这个是说不上来是什么,是跟引导或启动相关的,不过实际使用的文件应该在/boot中
install.log  安装日志
install.log.syslog  也是个日志
vmlinuz  内核文件
windows.iso  这个应该是你自己拷的文件
回复 支持 反对

使用道具 举报

发表于 2006-10-23 11:54:42 | 显示全部楼层
ls命令相当于windows(DOS)下的dir命令,使用这个命令显示的内容与这个命令无关,只跟你的目录(文件夹)里的内容有关。
回复 支持 反对

使用道具 举报

发表于 2006-10-23 13:07:02 | 显示全部楼层
Post by yd_xzn
ls命令相当于windows(DOS)下的dir命令,使用这个命令显示的内容与这个命令无关,只跟你的目录(文件夹)里的内容有关。


说到点上了,看来不能完全抛开Windows来谈Linux呀。

即然这样,再补充一下,~目录相当于Windows下的Documents and settings\当前用户名同名目录
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-23 13:41:19 | 显示全部楼层
anaconda-ks.cfg
displays information about a selection of the active processes. If you want
election and the displayed information, use top(1)
下面那串英文是否因为anaconda-ks.cfg引起的?还是别的什么引起的?有什么办法可以删除掉那些英文?
回复 支持 反对

使用道具 举报

发表于 2006-10-23 14:44:53 | 显示全部楼层
你用的系统是什么版本?

把ls -lh的结果发一下。

把du -h 的结果也发一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-23 14:52:33 | 显示全部楼层
[root@localhost ~]# ls -lh
总计 16M
-rw-r--r-- 1 root root  48K 10-19 14:36 displays information about a selection of the active processes. If you want
-rw-r--r-- 1 root root  11K 10-19 14:37 election and the displayed information, use top(1)
-rw-r--r-- 1 root root  28K 10-16 23:36 install.log
-rw-r--r-- 1 root root 3.5K 10-16 23:29 install.log.syslog
-rw-r--r-- 1 root root  48K 10-19 14:36 - report a snapshot of the current processes.
-rw-r--r-- 1 root root 1.5M 10-19 10:48 vmlinuz
-rw-r--r-- 1 root root  14M 10-23 09:56 windows.iso
[root@localhost ~]# du -h
16M     .

我用的是FC5
回复 支持 反对

使用道具 举报

发表于 2006-10-23 15:07:17 | 显示全部楼层
你所说的displays information about a selection of the active processes. If you want是个48K的文件

election and the displayed information, use top(1)是个11K的文件

这样已经很直接了,可以用less看看是什么内容,没用就删了吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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