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 hide files and folders under Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to hide files and folders under Linux, I believe 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!

Do you want to hide files or folders on your Linux file system, but you don't know what to do? Don't worry, it's not as complicated as it sounds, and it can be done quickly and efficiently. In this guide, we will show you simple ways to effectively hide files and folders in Linux.

In addition to the hidden things, we will also discuss how to display these hidden items in the terminal and in the file manager.

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.

Find a file or directory that you want to hide with the File Manager and select it. Press F2 (or right-click and choose rename). Next, place one. Directly 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.

View hidden files and folders in the terminal

The fastest way to view hidden files and folders in any part of the Linux file system is to use a terminal. Yes, all file managers on the Linux platform currently have the option of "View Hidden Files", but this approach applies to those who prefer to use terminals. 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 see hidden items, you need the-a switch.

View hidden files and folders in the File Manager

File managers on Linux are not created equal. The settings of one manager will be different in another. Regardless of this fact, they all have roughly the same functionality, especially when showing hidden files. The ability to view hidden files in the File Manager on Linux is usually hidden under View. In order to enable it quickly without setting it, please try the keyboard shortcut "Ctrl + H" first.

A safe way to hide files

Use。 Hiding files and folders is simple and straightforward, but it is also very unsafe. This is useful if you just want to keep an unimportant file or folder out of your sight. For security reasons, here are some other ways to hide files / folders:

1. Compress files / folders with a password

Consider using this method if you need to hide folders and files for security reasons. First, find the file or folder you want to hide in the File Manager, and then right-click to compress it. Select compress. This will bring up the compression tool. By default, select ".tar.gz". Select ".zip" from the drop-down menu.

Under the file name, place one. Hide it before, and then enter the file name of the file.

Then, select the archive file you want to hide and save it by clicking location and browsing the correct directory. After that, click other options and enter the security password. After filling in all the information, click the create button. Soon, your hidden password archive will be created!

two。 Create an encrypted directory

There are many tools in Linux that can be used to create an encrypted directory, but I find that the easiest thing is to use Gnome's Encfs Manager. Again, you can use it. Create your encrypted directory. Before the file name, and your files and folders will be secure and hidden at the same time.

3. Hide files in an image

If you think using. Method is too insecure, and another way is to use a method called Steganography to hide the file in the image. There are three ways to hide confidential data in an image.

The above is all the contents of the article "how to hide Files and folders under 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