官术网_书友最值得收藏!

Hiding files

You can hide any file by renaming it to a name that starts with a dot.

Let's try it; you can hide the file dogs.txt by renaming it to .dogs.txt as follows:

elliot@ubuntu-linux:~$ ls
apple.txt banana.txt carrot.txt dogs.txt Desktop dir1 small
elliot@ubuntu-linux:~$ mv dogs.txt .dogs.txt
elliot@ubuntu-linux:~$ ls
apple.txt banana.txt carrot.txt Desktop dir1 small
elliot@ubuntu-linux:~$

As you can see, the file dogs.txt is now hidden as it got renamed to .dogs.txt. You can unhide .dogs.txt by renaming it and removing the leading dot from the filename:

elliot@ubuntu-linux:~$ mv .dogs.txt dogs.txt
elliot@ubuntu-linux:~$ ls
apple.txt banana.txt carrot.txt dogs.txt Desktop dir1 small
elliot@ubuntu-linux:~$

Yes, Sir! You can also hide and unhide directories in the same manner. I will leave that for you to do as an exercise.

主站蜘蛛池模板: 通州市| 衡阳市| 北辰区| 镇原县| 鹰潭市| 林甸县| 临沂市| 兰坪| 碌曲县| 奈曼旗| 财经| 财经| 淮南市| 井冈山市| 林芝县| 师宗县| 定日县| 麻栗坡县| 六枝特区| 平度市| 克拉玛依市| 家居| 曲周县| 岚皋县| 永州市| 黎城县| 龙游县| 万载县| 富平县| 寿宁县| 筠连县| 鄂伦春自治旗| 将乐县| 陇南市| 毕节市| 靖江市| 陕西省| 扎鲁特旗| 无棣县| 神农架林区| 昌都县|