Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2012-12-27
3
572 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 425 total points
ID: 38725173
0
 
LVL 44

Assisted Solution

by:Darr247
Darr247 earned 75 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

789 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