- 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.
推薦閱讀
- OpenStack Cloud Computing Cookbook(Third Edition)
- GraphQL學習指南
- Azure IoT Development Cookbook
- JavaScript語言精髓與編程實踐(第3版)
- Python程序設計(第3版)
- Access 2010數據庫基礎與應用項目式教程(第3版)
- 深度強化學習算法與實踐:基于PyTorch的實現
- GeoServer Beginner's Guide(Second Edition)
- Spring快速入門
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Android項目實戰:手機安全衛士開發案例解析
- Android應用開發實戰
- Machine Learning for Developers
- Instant jQuery Boilerplate for Plugins
- SQL Server 2012數據庫管理與開發(慕課版)