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

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.

主站蜘蛛池模板: 龙州县| 冀州市| 衡南县| 沙河市| 东源县| 二连浩特市| 桐庐县| 和静县| 古田县| 阳高县| 濮阳县| 嵩明县| 大渡口区| 保靖县| 湖南省| 元朗区| 镶黄旗| 雷山县| 武山县| 磐石市| 安龙县| 建始县| 万盛区| 阜新市| 临猗县| 康定县| 饶阳县| 商城县| 视频| 柳州市| 陕西省| 孟村| 黄大仙区| 建瓯市| 若尔盖县| 枣庄市| 锡林浩特市| 邵武市| 洛宁县| 西华县| 灵丘县|