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

Thread: How to open a picture file from terminal?

  1. #1
    Join Date
    Feb 2009
    Beans
    196
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Question How to open a picture file from terminal?

    Hello, I am trying to find a way to open a picture file from the terminal. I have a picture located at 'home/michael/pictures/backgrounds/BSOD.gif'

    I want to use GNOME image viewer and I want it to open in full screen mode.


    Is this possible with a single terminal command?

    Thanks,
    Wolvee

    Ubuntu 10.10 Desktop

  2. #2
    Join Date
    Jun 2010
    Beans
    Hidden!

    Re: How to open a picture file from terminal?

    it would be like
    Code:
    eog -f /home/michael/pictures/backgrounds/BSOD.gif

  3. #3
    Join Date
    Feb 2009
    Beans
    196
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Talking Re: How to open a picture file from terminal?

    That's great. It opens file in fullscreen mode just like I wanted. :0)

    I'll post up a video as to why I wanted this soon. It is a little on the silly side but fun for a new user like me.

    Merry Christmas & Season

  4. #4
    Join Date
    Jun 2010
    Beans
    Hidden!

    Re: How to open a picture file from terminal?

    Quote Originally Posted by Sxynerd View Post
    I'll post up a video as to why I wanted this soon. It is a little on the silly side but fun for a new user like me.
    Quote Originally Posted by Sxynerd View Post
    ~BSOD.gif~
    i could guess

    season's greetings to you too

  5. #5
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How to open a picture file from terminal?

    Code:
    xdg-open /path/to/the/picture
    for example
    Code:
    xdg-open /home/username/1.png

  6. #6
    Join Date
    May 2010
    Location
    uk
    Beans
    9,299
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to open a picture file from terminal?

    Hi

    From the terminal you can also use

    Code:
    gnome-open <filename>
    and it will open the file with the application that is associated with that file in gnome.

    i.e

    Code:
    gnome-open ~/Pictures/picture.gif
    or

    Code:
    gnome-open ~/article.pdf
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  7. #7
    Join Date
    Feb 2009
    Beans
    196
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How to open a picture file from terminal?

    Eh.. I can't configure my "windows" key on my keyboard. :0( So I guess I am SOL.

    Anyone know how to get Ubuntu to recognize that key?

  8. #8
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: How to open a picture file from terminal?

    Do you want to bind the key??

  9. #9
    Join Date
    Mar 2010
    Location
    Lunar Base VII- Sector IX
    Beans
    1,756
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to open a picture file from terminal?

    Quote Originally Posted by Sxynerd View Post
    Eh.. I can't configure my "windows" key on my keyboard. :0( So I guess I am SOL.

    Anyone know how to get Ubuntu to recognize that key?
    http://www.howtogeek.com/howto/27038...u-linux-10.04/
    5.5 GB's Free Ubuntu-One Cloud Storage~
    Click Here
    _______________________________________________

  10. #10
    Join Date
    Feb 2009
    Beans
    196
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How to open a picture file from terminal?

    Thank you but I have ran through that tutorial several times. IT works to bind that key but not to use the command I chose. (^See above)
    Last edited by Sxynerd; December 30th, 2010 at 07:51 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •