Find the answer to your Linux question:
Results 1 to 3 of 3
I wanted to know how we could open a txt file in its default GUI application using the shell. I know i could cat it out but I am more ...
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    67

    Opening a txt file in default GUI application using shell

    I wanted to know how we could open a txt file in its default GUI application using the shell. I know i could cat it out but I am more interested in opening it in its default application.. Btw i was checking the post option and it seems that they have a "solved" option now.. YAYYY...

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    If I understand you correctly, you want to open document.txt in, for example, gedit. Correct?
    If so, just cd to the correct directory, and do:
    Code:
    gedit document.txt
    Or provide the entire path from any directory:
    Code:
    gedit /path/to/document.txt
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    67
    Yeah.. That worked thanks... though am using geany ..

Posting Permissions

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