PDA

View Full Version : [ubuntu] open a GUI window using terminal



paul88
May 16th, 2010, 01:33 AM
Is there anyway on opening a GUI for a folder that you are in. Such as if i direct to the home directory and then type the command then a GUI of the directory appears.

Thanks

angry_johnnie
May 16th, 2010, 01:39 AM
nautilus /whichever/directory/you/are/in

replace "nautilus" with "your-file-manager"

BoneKracker
May 16th, 2010, 01:44 AM
$(pwd) returns the directory your currently in.

. is also a synonym for the current directory.

So I think the following would also work
nautilus $(pwd)
nautilus .
Also, if you want the graphical process to fork off, so you can close the terminal (or continue doing something else with it), you can add an ampersand to the end of the command:
nautilus . &

tgalati4
May 16th, 2010, 04:53 AM
nau(tab) . &


I can do that in 6 keystrokes.

BoneKracker
May 16th, 2010, 07:05 AM
nau(tab) . &


I can do that in 6 keystrokes.

:lol:

You forgot to count <Enter>.

I can do it in 5.

ctrl+r na <Enter>

And then 2.

up-arrow <Enter>

:P

Except I don't have nautilus on my computer, or any other file manager, for that matter. I don't like file managers.

TironN
May 16th, 2010, 07:24 AM
:lol:

You forgot to count <Enter>.

I can do it in 5.

ctrl+r na <Enter>

And then 2.

up-arrow <Enter>

:P

Except I don't have nautilus on my computer, or any other file manager, for that matter. I don't like file managers.

No file manager?

Now thats a hardcore terminal user!

BoneKracker
May 16th, 2010, 07:55 AM
They just get in the way and slow you down. It's like having somebody holding a a map in front of your face when you're trying to drive.

TironN
May 16th, 2010, 08:09 AM
Yeah. I get what your saying. I am still not quite fast enough at the terminal to do it yet but one day!

MrWES
May 16th, 2010, 12:40 PM
nau(tab) . &


I can do that in 6 keystrokes.



alias nat='nau(tab) . &'

three keystrokes :)

tgalati4
May 16th, 2010, 11:12 PM
Yea, I was going to include an alias for "n" but then that would be cheating.

BoneKracker
May 17th, 2010, 01:36 AM
Yea, I was going to include an alias for "n" but then that would be cheating.

++

cheating

:lol:

(so were my last 2 though)

MrWES
May 18th, 2010, 11:56 PM
Yea, I was going to include an alias for "n" but then that would be cheating.

heh.... don't think I could top that one.

BoneKracker
May 19th, 2010, 03:02 AM
heh.... don't think I could top that one.

How about a motion-sensor/facial-recognition app that launches it when when you twitch your nostrils?

0 keystrokes.

And biometric authentication as a bonus.