from commandline to nautilus, and back

Most of the time I prefer to use the linux commandline to do stuff on my computers, but sometimes, its just easier to use the graphical interface. Like for example when I want to open a jpeg image (for use in Gimp) from some folder that contains hundreds of jpegs: I want to see the thumbnails.

However, navigating into  such a folder is a lot easier on the commandline. Sometimes the folder I want to go to is more then 10 subfolders deep  and I hate to click through all of them: commandline + tab-completion is so much easier.

So what I wanted was 2 simple scripts: to go from nautilus to the terminal (and the correct folder), and one to open nautilus from the commandline (and open the same folder).

From nautilus to commandline

Nautilus comes with a few plugins, and one script does just that: it adds a option in the menu 'Open in terminal'. To install, type (as root) apt-get install nautilus-open-terminal

From commandline to nautilus

This is an option I use a lot! And its so simple.

You can simply start Nautilus from the commandline, however , it will show your home folder. To open the current folder, type:

nautilus ./

This opens Nautilus as a foreground-process; very usefull.

(for some reason, I couldn't find anywhere in the manual that you can give a foldername as an argument. I found this out just by trying).

But, I'm lazy, and dont want to type all that, so I made an alias in my .bashrc file:

alias ww='nautilus ./'

I named it 'ww' , but of course you can name it whatever you want; but since I use it very often, I wanted to give it a simple name.

Post your comment

Comments

No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments