Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Ubuntu 12.04 Unity - Easy way to open a file in GUI text editor

Posted on 2012-12-27
3
Medium Priority
?
591 Views
Last Modified: 2012-12-28
I'm a new Ubuntu 12.04 Unity user coming from a Windows background.  One thing I do a lot in Windows is rename the extension of a file so that Windows uses a different application. For example, I change the extension to .txt so that clicking opens the file in notepad or wordpad, later renaming the extension back to resume using my "normal" application associated with that extension.  If only doing this "one time", instead of renaming I would right click and specify the application from the context menu.

With my short experience under Ubuntu, it seems that the file extension trick is not applicable. Also, on some files (like svg) the context menu does have an "Open with" option but other files don't.  I find myself going into terminal and using vi which takes longer for me.  Is there an easy way to open a file in the GUI with a different application (assuming the context menu lacks and "Open With" option)?  I'm hoping for a technique that makes it quick and easy to modify the application that is used to open a specific file, even if just for one time.
0
Comment
Question by:MajorBigDeal
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1700 total points
ID: 38725173
0
 
LVL 44

Assisted Solution

by:Darr247
Darr247 earned 300 total points
ID: 38725351
If it's one-off, open a terminal (looks like a small monitor in the favorites menu on the left) and run
$ sudo gedit /path/to/filename.ext
0
 
LVL 11

Author Closing Comment

by:MajorBigDeal
ID: 38728815
Thanks!
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question