Skip to content
Codeable Magazine

Codeable Magazine

How to Launch Your Default Apps With Simple Commands in Ubuntu

James, May 17, 2017

The reliability of Linux operating systems is much higher as compare to windows from many aspects whether it is about the security or system crash. That is the reason why most of the developers prefer Linux over any other OS. Ubuntu is a debian based operating system which is open source and can be easily downloaded from its official website. This operating system is not as famous as windows or Mac, as a result, the availability of applications is less. But using Linux based operating system means complete freedom of using apps. There are some terminal commands that you can use to launch your default apps with simple commands in Ubuntu.

Due to its open source nature, the user can customize the functionality according to their convenience. There is no need to search important program files through different software such as HTML opening with web browser. You just need to type some command lines and specific application will open automatically. This article will guide to launch your default apps with simple commands in Ubuntu very easily. Just follow the steps and be the master of Linux within few minutes.

launch your default apps with simple commands in ubuntu

How to Launch Your Default Apps With Simple Commands in Ubuntu:

The update-alternative system

The first thing to initiate the procedure of opening applications with terminal command is looking at alternative editor provides a terminal based text editor. This is the command line to be followed:-

whereis editor

 editor: /usr/bin/editor /usr/share/man/man1/editor.1.gz

By entering:-

sudo editor /etc/fstab

the file system config file will open in text editor. It will open in nano as shown in below picture:-

launch your default apps with simple commands in ubuntu

You may consider editor command a symbolic link or a link to nano. Same as, the command usr/bin/editor is a link to etc/alternative/editor which is location where system alternatives are managed as symbolic links. This is actually your path link that links to an alternative directory to a program which is a tool to manage the links.

Example update-alternative usage

Generally the update alternatives follow the following pattern:-

sudo update-alternatives [option] [alternative(s)]

Here in this command line, the term alternatives refer to the program that will end up using by the programmer. The option word in command line refers what you want to do. With the help of display option, some details will appear while continuing with editor component.

update-alternatives –display editor

launch your default apps with simple commands in ubuntu

In this picture, the top most lines illustrate the path of editor command and also show what is linked currently. The list command will make things much clear which is:-

update-alternatives –list editor

launch your default apps with simple commands in ubuntu

Through this command line, you will find nano as alternative for editor. The third option is assigning the editor to call VIM program on the place of config option which can be opened with following command:-

sudo update-alternatives –config editor

launch your default apps with simple commands in ubuntu

Here you can select a new option by using interactive menu. In case you know which program you want to execute, choose the set option as:-

sudo update-alternatives –set editor /usr/bin/vim.basic

Update-alternative options

You can make use of update-alternatives systems through many options from which, some of the most useful are provided below. These options will be helpful to launch your default apps with simple commands in ubuntu. So the first one is:-

update-alternatives –config java

For the programs that require a defined version of java for installation on ubuntu based system, you can install open source java. It will enable the user to install multiple versions of oracle JRE.

Check the convenience app update-java-alternatives that will help you in java-specific work.

launch your default apps with simple commands in ubuntu

update-alternatives –config x-www-browser/gnome-www-browser

This command line will help the user to set the default web browser followed by this command:-

update-alternatives –config mozilla-flashplugin

This will be helpful in opting out between adobe version and gnash open source.

Till now, the partial availabilities are discussed, but if you are searching for a command line with full range capabilities then follow this:-

update-alternatives –get-selections

Customize your alternatives

In addition to the alternative features, some options are available to customize the alternative groups. While installing supported packages, alternatives are added automatically. But it is also possible that you can add your own alternative that needs to populate these alternatives manually. If you want to create x-word-processor alternative then use this command:-

sudo update-alternatives –install /usr/bin/word-processor x-word-processor /usr/bin/lowriter 40

This command line will create:-

  • A new symlink called word processor representing
  • Create x-word-processor as new alternative group
  • Priority of 40

Executing word processor with command line will launch libr3e office writer. With the help of same command, you can change the real application bath through this command line:-

sudo update-alternatives –install /usr/bin/word-processor x-word-processor /usr/bin/wordgrinder 20

that will how the following options for user as illustrated in picture.

launch your default apps with simple commands in ubuntu

This is the detailed process to launch your default apps with simple commands in ubuntu. With the help of pictures and command lines provided in this article, every ubuntu user can gain access to their applications.

How To Linux Technology LinuxTips & TricksUbuntu

Post navigation

Previous post
Next post

Related Posts

How To

How to Easily Transfer All Your Data to a New Android Device

June 29, 2017

Android has become one of the widely used operating system among all mobile platforms because nobody else can provide you this level of advanced features at affordable price. As being an existing android user, the problem starts occurring when you plan for switching to an upgraded version of android device…

Read More
How To

How to Use an Animated GIF as Your Wallpaper in Windows 10

May 30, 2017

The graphic interchange format or you can say GIF is the latest trend in media files sharing for entertainment. It has become so popular because you can see GIF files in every mobile device. Now you can also use it as wallpaper to make your desktop more impressive. A GIF…

Read More
Resources

10 Best Free Online Video Editing Software

April 11, 2017September 15, 2025

Video editing has become a bit common these days. While some do it for fun, some do it because of their educational or professional need. Whatever reason you have for video editing, you must know that you do not necessarily have to install a software for editing videos as there…

Read More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

©2026 Codeable Magazine | WordPress Theme by SuperbThemes