查看隐藏文件办法
2017-07-10 本文已影响0人
Sainbyno
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 ~]#