lewis4u Asked: 2017-06-01 03:29:11 +0800 CST2017-06-01 03:29:11 +0800 CST 2017-06-01 03:29:11 +0800 CST How to add "Show hidden files" in right click Menu in Nautilus? 772 I would like to have this option in my menu on right click. At the moment it looks like this: And I know that I can hit Ctrl+H to show the hidden files but I want to learn so if I want to add some other options later I can use this answer. nautilus 1 Answers Voted Best Answer Ali Razmdideh 2017-06-01T06:54:25+08:002017-06-01T06:54:25+08:00 Yes‚ you can do it with this steps: nano ~/.local/share/nautilus/scripts/hide_or_show And then paste this lines to it: #!/bin/bash OLDSTATE=$(gsettings get org.gtk.Settings.FileChooser show-hidden) if [ "$OLDSTATE" == "false" ] ; then gsettings set org.gtk.Settings.FileChooser show-hidden true else gsettings set org.gtk.Settings.FileChooser show-hidden false fi And then make this file executable: chmod +x ~/.local/share/nautilus/scripts/hide_or_show And then restart nautilus: nautilus -q And after this you can right-click on any files and then from scripts choose hide_or_show. But if you want to hide_or_show display every where like empty space (not only when a files is selected): 1.Install nautilus-actions: sudo apt install nautilus-actions 2.Then click on Define a new action. 3.From action tab, in the Context-label field, type hide_or_show (or any other names that you want) 4.Then check the Display item in location context menu. 5.From Command tab, in the Path, type /home/YOURUSERNAME/.local/share/nautilus/scripts/hide_or_show 6.Then save the changes by Ctrl+s and then restart nautilus: nautilus -q So with this steps hide_or_show is always visible in context menu > nautilus Actions action.
Yes‚ you can do it with this steps:
And then paste this lines to it:
And then make this file executable:
And then restart nautilus:
And after this you can right-click on any files and then from scripts choose
hide_or_show
.But if you want to
hide_or_show
display every where like empty space (not only when a files is selected):1.Install
nautilus-actions
:2.Then click on
Define a new action
.3.From
action
tab, in theContext-label
field, typehide_or_show
(or any other names that you want)4.Then check the
Display item in location context menu
.5.From
Command
tab, in thePath
, type/home/YOURUSERNAME/.local/share/nautilus/scripts/hide_or_show
6.Then save the changes by Ctrl+s and then restart nautilus:
So with this steps
hide_or_show
is always visible incontext menu > nautilus Actions action
.