Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: open a GUI window using terminal

  1. #1
    Join Date
    Nov 2009
    Beans
    57
    Distro
    Ubuntu 10.04 Lucid Lynx

    open a GUI window using terminal

    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

  2. #2
    Join Date
    Dec 2007
    Location
    /home
    Beans
    483

    Re: open a GUI window using terminal

    Code:
    nautilus /whichever/directory/you/are/in
    replace "nautilus" with "your-file-manager"
    Don't eff with The Cult...

  3. #3
    Join Date
    Jan 2006
    Location
    U.S.A.
    Beans
    971
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: open a GUI window using terminal

    $(pwd) returns the directory your currently in.

    . is also a synonym for the current directory.

    So I think the following would also work
    Code:
    nautilus $(pwd)
    Code:
    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:
    Code:
    nautilus . &
    Favorite man page quote: "The backreference \n, where n is a single digit, matches the substring previously matched by the nth parenthesized subexpression of the regular expression." [excerpt from grep(1)]

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: open a GUI window using terminal

    Code:
    nau(tab) . &
    I can do that in 6 keystrokes.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  5. #5
    Join Date
    Jan 2006
    Location
    U.S.A.
    Beans
    971
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: open a GUI window using terminal

    Quote Originally Posted by tgalati4 View Post
    Code:
    nau(tab) . &
    I can do that in 6 keystrokes.


    You forgot to count <Enter>.

    I can do it in 5.

    ctrl+r na <Enter>

    And then 2.

    up-arrow <Enter>



    Except I don't have nautilus on my computer, or any other file manager, for that matter. I don't like file managers.
    Last edited by BoneKracker; May 16th, 2010 at 07:09 AM.
    Favorite man page quote: "The backreference \n, where n is a single digit, matches the substring previously matched by the nth parenthesized subexpression of the regular expression." [excerpt from grep(1)]

  6. #6
    Join Date
    Oct 2009
    Location
    The Internet
    Beans
    127
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: open a GUI window using terminal

    Quote Originally Posted by BoneKracker View Post


    You forgot to count <Enter>.

    I can do it in 5.

    ctrl+r na <Enter>

    And then 2.

    up-arrow <Enter>



    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!
    "Any sufficiently advanced bug is indistinguishable from a feature." - Rich Kulawiec

  7. #7
    Join Date
    Jan 2006
    Location
    U.S.A.
    Beans
    971
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: open a GUI window using terminal

    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.
    Favorite man page quote: "The backreference \n, where n is a single digit, matches the substring previously matched by the nth parenthesized subexpression of the regular expression." [excerpt from grep(1)]

  8. #8
    Join Date
    Oct 2009
    Location
    The Internet
    Beans
    127
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: open a GUI window using terminal

    Yeah. I get what your saying. I am still not quite fast enough at the terminal to do it yet but one day!
    "Any sufficiently advanced bug is indistinguishable from a feature." - Rich Kulawiec

  9. #9
    Join Date
    Mar 2008
    Location
    Connecticut
    Beans
    940
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: open a GUI window using terminal

    Quote Originally Posted by tgalati4 View Post
    Code:
    nau(tab) . &
    I can do that in 6 keystrokes.

    Code:
    alias nat='nau(tab) . &'
    three keystrokes
    Ubuntu 10.04-Server: HP Pavilion: AMD Athlon 3200; 2gb RAM; GeForce4 MX - nForce; 160gb HDD; 1TB eSATA External HDD | Ubuntu 10.04: Dell D600; Intel Pentium M 1600 MHz; 2gb RAM; ATI Radeon 9000 (RV250); 60gb HD | Ubuntu User #24614

  10. #10
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: open a GUI window using terminal

    Yea, I was going to include an alias for "n" but then that would be cheating.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •