歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Linux中設置隱藏文件的方法

Linux中設置隱藏文件的方法

日期:2017/3/2 16:32:40   编辑:Linux服務器

本文將介紹linux系統隱藏文件的設置方法:

  首先我建立一個測試文件

  [root@cacti test]# touch test

  [root@cacti test]# ls

  test

  然後我將test文件隱藏

  [root@cacti test]# mv test .test

  [root@cacti test]# ls

  可以看出文件看不見了,用ls –a 即可看見

  [root@cacti test]# ls -a

  . .. .test

  然後再將隱藏文件顯示出來

  [root@cacti test]# mv .test test

  [root@cacti test]# ls

  test

  目錄的隱藏也是一樣

Copyright © Linux教程網 All Rights Reserved