查看隐藏文件办法

Linux查看目录下隐藏文件的四种方法

四种查看隐藏文件的命令

代码表示:

[root@CentOS7 ~]#
[root@CentOS7 ~]#ls
anaconda-ks.cfg  Downloads      httpd-2.4.25.tar.bz2  Pictures   vimrc
bin              etc2017-06-06  initial-setup-ks.cfg  Public     Word 2007.lnk
Desktop          f1             Music                 Templates
Documents        httpd-2.4.25   partfile              Videos
[root@CentOS7 ~]#
[root@CentOS7 ~]#
[root@CentOS7 ~]#
[root@CentOS7 ~]#ls -aI "[^.]*"   
.              .bash_logout   .cache   .dbus          .lesshst  .tcshrc
..             .bash_profile  .config  .esd_auth      .local    .viminfo
.bash_history  .bashrc        .cshrc   .ICEauthority  .ssh      .vimrc
[root@CentOS7 ~]#
[root@CentOS7 ~]#
[root@CentOS7 ~]#ls -a --ignore=[^.]*
.              .bash_logout   .cache   .dbus          .lesshst  .tcshrc
..             .bash_profile  .config  .esd_auth      .local    .viminfo
.bash_history  .bashrc        .cshrc   .ICEauthority  .ssh      .vimrc
[root@CentOS7 ~]#
[root@CentOS7 ~]#
[root@CentOS7 ~]#ls -d .*
.              .bash_logout   .cache   .dbus          .lesshst  .tcshrc
..             .bash_profile  .config  .esd_auth      .local    .viminfo
.bash_history  .bashrc        .cshrc   .ICEauthority  .ssh      .vimrc
[root@CentOS7 ~]#
[root@CentOS7 ~]#
[root@CentOS7 ~]#l.
.              .bash_logout   .cache   .dbus          .lesshst  .tcshrc
..             .bash_profile  .config  .esd_auth      .local    .viminfo
.bash_history  .bashrc        .cshrc   .ICEauthority  .ssh      .vimrc
[root@CentOS7 ~]#
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容