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

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.

主站蜘蛛池模板: 辽宁省| 张家港市| 西乌珠穆沁旗| 安岳县| 会理县| 天柱县| 吴堡县| 图木舒克市| 呼伦贝尔市| 布尔津县| 涞水县| 景东| 雅江县| 汕头市| 正镶白旗| 东源县| 玉环县| 云林县| 堆龙德庆县| 淮阳县| 黄大仙区| 厦门市| 陕西省| 五原县| 濮阳市| 游戏| 衡南县| 乌鲁木齐县| 平凉市| 河北区| 寻乌县| 开封县| 北流市| 麦盖提县| 东阳市| 上栗县| 麻城市| 荔波县| 乌兰县| 连山| 忻州市|