Solved

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

Posted on 2012-12-27
3
573 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
[X]
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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SMB share across internet 15 86
Samba Question 11 109
blank screen when trying to setup Unity on Ubuntu 14.04 9 56
Check for Linux process in script 7 69
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

696 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