Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set file hiding by linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to set linux file hiding, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

In linux, you can add "." before the file name. To hide the file, just rename the file you want to hide, the syntax is "mv file name. file name"; the mv command is used to rename the file, you can use the "ls-a" command to find hidden files.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to set file hiding by linux

How to hide Files under Linux

1. Hide files / directories

Hiding files in the Linux file system is the result of a long-standing bug in the unix operating system. After a while, many people adopted this feature and thought it was a feature. It is much easier to hide files or directories than on Windows. To hide the entire file in Linux, simply rename the file and place some text in front of it.

The specific methods are as follows:

1) find a file or directory that you want to hide with the File Manager and select it.

2) press F2 (or right-click and select rename).

3) next, place a "." Before the file name.

Because most file managers hide hidden files by default, renamed files or directories are now invisible. Note that files placed in a hidden directory are also hidden by default.

2. View hidden files and folders in the terminal

To view these files, first use cd to go to the specific directory where you hid the files / folders. Next, use the following command to display all files, whether visible or hidden. Ls-a

The ls command displays all items in the current directory, but does not show hidden items. To view hidden items, you need the-a parameter.

3. View hidden files and folders in the File Manager

Use the keyboard shortcut "Ctrl + H" to show / hide [hide files].

The above is all the contents of the article "how to hide files in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report