Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

The One-Second Linux Trick to Hide Any File Instantly

Nichonauta 1 min read

Did you know that hiding files on Linux (and macOS) is as simple as adding a dot at the beginning of the filename? That's right—prefixing a file with a period (.) makes it invisible to the standard ls command and graphical file managers, effectively hiding it from casual view. This trick works on any file or folder and can be undone just as quickly by renaming it without the dot.

How to hide a file:

  1. Open a terminal.
  2. Use the command mv filename .filename (replace "filename" with your actual file name).
  3. The file is now hidden. To see hidden files, use ls -a.

This is a quick, no-installation method that works across Unix-like systems. Give it a try—your private documents will thank you!

React