当前位置: 首页 > Linux

linux中如何取消文件隐藏命令,Linux基本命令:显示隐藏文件

时间:2023-04-07 03:29:56 Linux

系统中有些文件和Windows中的系统文件一样,这些文件一般是不显示的,那么我们可以使用-a参数来显示隐藏文件。如下图:[root@Linux~]#ls-a..chewing.gconfdinstall.log.redhat...cshrc.gnomeinstall.log.syslog.scimanaconda-ks.cf系统中的一些文件,而Windows一般不会显示这些文件,所以我们可以使用“-a”显示隐藏文件的参数。如下:[root@Linux~]#ls-a..chewing.gconfdinstall.log.redhat...cshrc.gnomeinstall.log.syslog.scimanaconda-ks.cfg桌面.gnome2.lesshst.tcshrc.bash_history.dmrc.gnome2_private.metacity.thumbnails.bash_logout.eggcups.gstreamer-0.10.mozilla.Trash.bash_profile.esd_auth.gtkrc-1.2-gnome2.nautilus.bashrc.gconf.ICEauthority.recently-used.xbel看看这样显示的文件多了。可以发现隐藏文件都是以“.”开头的文件。这些文件一般都有特殊的功能,如果显示出来,可能会被用户不小心删除。我们可以结合以上两个参数来显示目录下的文件,如下图:[root@Linux~]#ls-altotal212drwxr-x---18rootroot409603-1905:30.drwxr-xr-x24rootroot409603-1912:21..-rw--------1rootroot86503-1504:12anaconda-ks.cfg-rw--------1rootroot237203-1905:52.bash_history-rw-r--r--1rootroot242006-07-13.bash_logout-rw-r--r--1rootroot1912006-07-13.bash_profile-rw-r--r--1rootroot1762006-07-13.bashrcdrwx------2rootroot409603-1420:32.chewing-rw-r--r--1rootroot1002006-07-13.cshrcdrwxr-xr-x2rootroot409603-1420:34Desktop-rw------1rootroot2603-1420:31.dmrcdrwxr-x---2rootroot409603-1420:32.eggcups-rw------1rootroot1603-1905:30.esd_authdrwx-----4rootroot409603-1905:06.gconfdrwx------2rootroot409603-1905:30.gconfddrwxr-xr-x3rootroot409603-1420:32.gnomedrwx------6rootroot409603-1905:30。gnome2drwx------2rootroot409603-1420:32.gnome2_privatestrwxr-xr-x2rootroot409603-1420:32.gstreamer-0.10-rw-r--r--1rootroot8103-1420:32.gtkrc-1.2-gnome2-rw------1rootroot35803-1905:30.ICEauthority-rw-r--r--1rootroot2796403-1504:12install.log-rw-r--r--1rootroot506903-1504:11install.log.syslog-rw-------1rootroot3503-1905:26.lesshstdrwx------3rootroot409603-1420:32.metacitydrwx-----3rootroot409603-1420:36.mozilladrwxr-xr-x3rootroot409603-1905:30.nautilus-rw-r--r--1rootroot152803-1905:30.recently-used.xbeldrwxr-xr-x3root根409603-1420:32.redhatdrwx------4rootroot409603-1421:06.scim-rw-r--r--1rootroot1292006-07-13.tcshrcdrwx------3rootroot409603-1420:33.thumbnailsdrwx------2rootroot409603-1420:32.Trash参考:3种在Linux中显示隐藏文件的方法