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

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.

主站蜘蛛池模板: 高雄市| 容城县| 临武县| 马关县| 若尔盖县| 客服| 麻江县| 大庆市| 武邑县| 汉寿县| 峨眉山市| 五大连池市| 彭山县| 青阳县| 乐昌市| 望都县| 雷山县| 望城县| 体育| 壤塘县| 陆良县| 通城县| 金寨县| 灵石县| 个旧市| 文水县| 巴彦淖尔市| 孟连| 台中市| 威远县| 县级市| 常德市| 福安市| 财经| 鹤岗市| 延长县| 榆林市| 观塘区| 海淀区| 梓潼县| 阿克陶县|