- Learn Linux Quickly
- Ahmed AlKabary
- 125字
- 2021-06-11 18:43:49
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.
推薦閱讀
- Learning NServiceBus(Second Edition)
- OpenShift開發指南(原書第2版)
- Apache Mesos Essentials
- Android底層接口與驅動開發技術詳解
- Python Data Analysis Cookbook
- Babylon.js Essentials
- Scala Data Analysis Cookbook
- Hadoop 2.X HDFS源碼剖析
- Java7程序設計入門經典
- 深入解析Java編譯器:源碼剖析與實例詳解
- MongoDB Administrator’s Guide
- Kohana 3.0 Beginner's Guide
- Visual C++網絡編程教程(Visual Studio 2010平臺)
- Mastering Android Application Development
- Mahout實踐指南