I have a group of files I want hidden to avoid clutter. Is there a command that can simply make multiple files hidden? Is there an application? Is there a single command that will make the files I've listed hidden?
Thanks.
I have a group of files I want hidden to avoid clutter. Is there a command that can simply make multiple files hidden? Is there an application? Is there a single command that will make the files I've listed hidden?
Thanks.
There's a nautilus script for that:
Source: http://gnomefiles.org/content/show.php/Easily+Hide+Files%2BFolders+in+Nautilus?content=142912
Copy and paste the contents of the code box above into a new document. Save it and rename it to Hide or Unhide. Make it executable (right click --> Properties --> Permissions --> Allow executing file as program). Then move the file to
~/.gnome2/nautilus-scripts
.You should now be able to access the script from your nautilus context menu. Just right click on any file(s) you want to hide or unhide and select Scripts --> Hide or Unhide. You will have to reload the folder (F5) to see the changes
The advantage of this method (besides it ease of use) is that it doesn't rename the files.
The Linux convention is to rename them to start with a
.
. Most programs, including Nautilus (the GNOME file browser), Dolphin (KDE), and command-line programs likels
and Bash's shell globbing, will then hide them (by default).To rename multiple files simultaneously, you could use any of several graphical tools:
pyrenamer
purrr
In PyRenamer, select your files, activate the "Insert / Delete" tab, and tell it to insert a
.
at position 1:From the command-line, the conventional way is to use
mv
andfind
(if needed). If you have only a few specific files you want to hide, run:to append a
.
to each file's names.If you have several similarly-named files you want to hide (e.g. any file starting with
hideme
), use shell globbing:To perform the same operation as the Nautilus Script mentioned above, it's also possible to add Hide/Unhide menu to Nautilus by installing the nautilus-actions-extra package via the PPA channel here: https://launchpad.net/~nae-team/+archive/ppa