What is the shortcut for opening a new window (opening folders). for that I have to go to folder options and right click and then need to click on open new window.
or I have to make focus on the folder icon or open a folder then press
Ctrl+N
for opening a new window is there any direct command spcific to open a new window in ubuntu.
Best Answer
To open a general window (12.04 / 14.04+)
I assume you would like to have a key combination to open a new Nautilus window (and raise it), no matter what application is in front.
You can do that, using a small script and adding a key combination to your shortcuts to run it.
If not installed, install
wmctrl
:Save the script below as "new_window" and make it executable. The script has a small difference for 14.04 or 12.04:
For 12.04:
For 14.04+:
Now add a command and a key combination of your preference to run the script
(System Preferences > Keyboard > Shortcuts > Custom Shortcuts)
The commmand:
Open a new window in a specific directory (14.04+)
To open a specific directory in nautilus on top of everything, call the small script below to open the directory (under your key combination) with the directory as an argument, so that instead of using the command:
to open the directory, you can use the command:
How to use
This script also uses
wmctrl
. To install it:The script
Copy it into an empty file, save it as
raise_nautilus.py
and run it by the command:*Note: if your directory contains spaces, use quotes around it.