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

  目錄的隱藏也是一樣

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章