LinuxSir.cn,穿越时空的Linuxsir!

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

[请教]如何只列出点开头的文件?

[复制链接]
发表于 2008-3-3 09:31:13 | 显示全部楼层 |阅读模式
在命令行下列出点开头的隐藏文件
发表于 2008-3-3 09:34:00 | 显示全部楼层
ls  .*
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 10:26:50 | 显示全部楼层
Post by chengpq;1822389
ls  .*


ls .*

.bash_history  .dmrc           .gtkrc-2.0           .vimrc
.bash_logout   .face           .ICEauthority        .Xauthority
.bash_profile  .gksu.lock      .recently-used.xbel  .xscreensaver
.bashrc        .gtk-bookmarks  .viminfo             .xsession-errors

.:
debs  Desktop  djgame2  DJGameSave  mydocs  note.txt  temp

……

.local:
share

.macromedia:
Flash_Player

.mozilla:
firefox  plugins

.mplayer:
config

.purple:
accels        blist.xml     icons      smileys
accounts.xml  certificates  prefs.xml  status.xml

.smplayer:
screenshots  smplayer.ini

.thumbnails:
normal

不行的
回复 支持 反对

使用道具 举报

发表于 2008-3-3 11:21:56 | 显示全部楼层
ls -A|grep '^\.'
回复 支持 反对

使用道具 举报

发表于 2008-3-3 13:13:59 | 显示全部楼层
ls -d .*
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-3 16:43:47 | 显示全部楼层
楼上两位的方法都可以,多谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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