• Home
  • SEM
    • PPC
    • SEO
    • How To
  • Bangladesh
  • School
    • HTTP
    • REP
    • Bots n’ htaccess
    • Source Code
    • Excel 2010
    • HTML XHTML Entities
    • Gmail Operators
    • HTML & ASCII
  • About
    • Privy
    • About This Blog
  • Contact
  • বাংলা

Saidul Hassan

Digital Marketing Evangelist

Home / How to / Hide files in Linux Mint 17.1 without renaming

Hide files in Linux Mint 17.1 without renaming

01 Jul, 2015 By Saidul Hassan · Filed Under: How to, Linux Mint

Create a file named .hidden in the directory where you want to hide the files.
List all the file names you want hide in the newly created file .hidden using a text editor. Just the file names, not the path with it.
Save the file.
Refresh/restart Nemo file browser.

Good to know: Ctrl+H toggles between show/hide hidden files.

Now how I do it: Alt+Ctrl+t to open terminal. cd to the directory you want to work on. Alternatively just browse into the folder and click on the “Open a terminal in the active folder” on the Toolbar Menu. It’s not on by default in Nemo but easy to activate using the preference menu in Nemo.
Open a terminal in the active folder

$ gksudo gedit /path/to/your/folder/.hidden

This will create a .hidden file and open in gedit text editor.
Open another terminal window or whatever and type $ ls -R |grep .jpg$ assuming you want to hide all .jpg images in recursive folder. It will list all images with .jpg extension in the folder and sub-folder.
ls -R |grep .jpg$
Copy the names from the terminal and paste into the .hidden file opened in gedit and save it. Close the file browser or restart Nemo.
Done.


Trying Next: Use of right-click on selected files to hide using NemoScripts. Tried so far:
Create a new file ~/.gnome2/nautilus-scripts/hide-files.sh with the following into it:

#!/bin/bash
touch $PWD/.hidden
echo "$PWD/$NEMO_SCRIPT_SELECTED_URIS" | tee -a $PWD/.hidden

It creates a new file, registers the selected file names but the newly created file name isn’t .hidden. Somehow it is taking the folder name. I am not new to this bash scripting and the linux thing. So no idea when or how this will be completed.
Source:http://ubuntuforums.org/showthread.php?t=789684&p=4986335#post4986335

Link to this post!
The following two tabs change content below.
  • Bio
  • Latest Posts
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Instagram profileMy Pinterest profile

Saidul Hassan

Managing Partner at Up Arrow Consulting
COO at Up Arrow Consulting, MCC manager, & Technical SEO consultant. Certified Google Partners and Microsoft Bing Ads Accredited Professional, Python enthusiast, wannabe SysAdmin. Graduated from School of Management & Business Administration (SOMBA), Khulna University.
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Instagram profileMy Pinterest profile

Latest posts by Saidul Hassan (see all)

  • Batch script to create directories & moving fixed number of files to those directories - 30 Apr, 2021
  • How to use PrismJS syntax highlighter on WordPress without plugin - 30 Mar, 2020
  • Download an Entire Website for Offline Viewing - 26 Nov, 2019

Share:

  • Twitter
  • Facebook
  • LinkedIn
  • Pinterest
  • Pocket
  • Email
  • Print

First published on 03 Jun, 2015 · Last updated 01 Jul, 2015 · Tagged With: file attribute, hidden, linux mint, nemo

Batch script to create directories & moving fixed number of files to those directories

30 Apr, 2021 By Saidul Hassan

How to use PrismJS syntax highlighter on WordPress without plugin

30 Mar, 2020 By Saidul Hassan

Download an Entire Website for Offline Viewing

26 Nov, 2019 By Saidul Hassan

How to color highlight .htaccess files in Xed/Gedit

20 Aug, 2018 By Saidul Hassan

HMA Pro VPN Setup for Multiple Locations without User/Password Every time in Linux CLI

14 May, 2018 By Saidul Hassan

  • ♥ Bangladesh ♥
    Log in · Privacy Policy · Contact
    Copyright © 2011 Saidul Hassan

  • DMCA

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.