Close Menu
    Facebook X (Twitter) Instagram Threads
    The Open Source Post
    • About
      • About FOSS Post
      • Donate
      • Privacy Policy
      • Services
    • Q&A
      • Take a Quiz
    • Linux
      • Ubuntu
    • AI
    • News
    • Statistics
    • Featured
      • Blog
    • How To
    • Software
    • Resources
      • Open Source Android Apps Series
    • Contact Us
    • Read More
      • Insights
    Facebook X (Twitter) YouTube
    The Open Source Post
    Home - Linux Desktop Tips & Tricks - Hide Files And Directories on Linux Without Renaming Them
    Linux

    Hide Files And Directories on Linux Without Renaming Them

    AudreyBy AudreyJuly 28, 2020Updated:May 21, 20262 Comments2 Mins Read152 Views

    Sometimes you may need to hide a file or folder from your home directory, but without modifying its name (E.g renaming example to .example) and also without removing it or moving it somewhere else.

    You just want to leave it in the same location, but without seeing it in your file manager view again.

    This could be helpful for example in the case of Snaps; They always leave a snap folder in your home folder while they are working, and you can’t remove it or move it somewhere else, Still, you don’t want to see that damn folder all the time.

    snap folder being displayed on Nautilus

    You also want to prevent members of your family from searching your sensitive files while you are not close to your computer, but you also don’t want to remove these files 😉

    Luckily, there’s a hidden (Quite hidden!) method in which you can do that in just one minute, and on all the major file managers (Not just nautilus).

    The method is quite simple. Just create a .hidden text file in your home directory, and put the name of the files/folders you want to hide in each separate line. So the contents of my own file at /home/mhsabbagh/.hidden will be:

    snap
    Videos
    Music

    Then close your file manager and open it again, and you’ll see the folders being hidden:

    Nautilus hiding the 3 selected folders

    By our testing, we found that the feature is supported on:

    • Nautilus: GNOME’s default file manager.
    • Dolphin: Default file manger for KDE.
    • Thunar: Default file manager for Xfce.
    • Pcmanfm-Qt: Default file manager for LXQt
    • Caja: Default file manager for MATE. (Thanks to Mahmut Erogul feedback).
    Thunar
    Dolphin
    Pcmanfm-Qt

    Additionally, the feature works on any folder, and not just the home directory. So say that you want to hide a folder called something which is located inside /home/<username>/Downloads, then what you’ll do is that you’ll create a text file named .hidden in the /home/<username>/Downloads and put something inside it, and then restart your file manager.

    In this way, you can keep your files and folders located at their place, but without seeing them in the file manager view.

    Tell us in the comments if this feature was helpful to you!

    Linux Desktop Tips & Tricks
    Audrey

      Audrey specializes in writing about Linux distributions, open-source applications, developer tools, and emerging trends in the FOSS community. With a strong focus on accessibility and real-world usability, she delivers in-depth guides, thoughtful opinion pieces, and hands-on reviews for readers passionate about open-source software and digital freedom.

      Related Posts

      192 l.168.1.1 Admin Login

      May 29, 202612,704 Views

      Most Popular Linux Distros 2026: Market Share, User Base and Adoption Trends

      May 21, 20269,639 Views

      Top 7 Open Source CCTV/IP/Camera Monitoring Software

      August 8, 20245,546 Views

      Enable Zram on Linux For Better System Performance

      February 24, 20234,398 Views

      Make Your Linux Look Like Windows XP, 7 and 10

      March 26, 20203,954 Views
      The Open Source Post
      Facebook X (Twitter) YouTube
      • About
      • Privacy Policy
      • Take a Quiz
      • Write For Us
      • Services
      • Contact Us

      Type above and press Enter to search. Press Esc to cancel.