Get the App
SLTechnology News&Howtos  ›  Servers  › 

The Operation method of hiding Files under Linux

Shulou Source: shulou.com Published: 2022-06-03 07:19:26 09月21日 Update

Today, the editor to share with you is the operation of hidden files under Linux, many people do not understand, today, in order to let you know more about Linux hidden files, so give you a summary of the following content, let's look down. I'm sure you'll get something.

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 a brief introduction to the operation of hidden files under Linux, of course, the detailed use of the above differences have to be used by everyone to understand. If you want to know more, welcome to follow the industry information channel!

Tags: Files directories methods folders projects file managers management next commands systems facets selections differences abbreviations operating systems contents functions parameters that is shortcut keys Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi MariaDB vpn OPPO Reno