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 © 2016 phpStudy | 豫ICP备2021030365号-3