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.
$ 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.
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/.hiddenIt 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