Working terminal instructions utilizing ShortCut on the Ubuntu Linux desktop

Working terminal instructions utilizing ShortCut on the Ubuntu Linux desktop

Run a terminal command in Linux utilizing the Desktop shortcut.

On this event I’ll share 2 tutorials which might be interconnected as circumstances of issues that I encountered a while in the past:

1. Run the command within the Ubuntu 14.04 Linux terminal utilizing quick minimize on the desktop.
2. Create a consumer administration shortcut / choose a consumer profile within the Mozilla Firefox browser.

A short clarification of how Quick Lower accesses Excuteable recordsdata

Earlier than I focus on a bit of about desktop quick cuts for working Linux Ubuntu terminal instructions, if you wish to find out about quick cuts, how you can make quick cuts in Linux Ubuntu and how you can show them on the desktop, you’ll be able to learn my article which I printed beforehand: ” create a desktop shortcut on linux ubuntu”.

Quick Lower, other than having the ability to be used as a shortcut to open the vacation spot folder briefly, will also be used to run an excutable sort file (within the type of a program/software). Likewise, the instructions that may be executed through the command line / terminal are additionally excutable recordsdata, subsequently you should use quick cuts to entry these instructions.

I encountered this case once I needed to share/customise customers on the Firefox net browser. Principally, Firefox has the identical consumer administration as Google Chrome or different net browsers, however to open or entry the consumer administration characteristic is finished with a sure command that runs within the terminal or command line.

Open terminal: ctrl+alt+t

Then execute the next command: firefox –new-instance –ProfileManager
Subsequent, the next window will seem:

I do not suppose it is efficient if I’ve to open the terminal and kind the command to open consumer administration in Mozilla Firefox.


Often, once I use the Home windows working system, I run this command within the Home windows batch file, normally with the extension *.bat. Nevertheless, on the Linux Working System you’ll be able to run sure instructions immediately utilizing a shortcut.

To create a shortcut to run a command within the terminal, you should use the identical supply code as making a Linux desktop shortcut on the whole.

Steps to Create a Shortcut to run Command Terminal on the Ubuntu Linux Desktop

Following are the steps to create a terminal command shortcut on the Ubuntu Desktop, particularly making a shortcut for the Firefox administration consumer command on Ubuntu:

  • First, please open the terminal first:

    ctrl+alt+t


  • Go to Desktop listing:

    Desktop cd

  • Create a brand new file:

    nano firefox. desktop


  • Copy the next supply code into the firefox.desktop file you simply created. Then modify the elements that you might want to modify, for instance the identify and icon:

    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Model=1.0
    Encoding=UTF-8
    Terminal=false
    Kind=Software
    Class=Software;
    Exec=gnome-terminal -e “firefox –new-instance –ProfileManager”
    Title[en_US]=Firefox
    Title[en_GB]=Firefox
    Title=Firefox
    Icon[en_US]=/residence/skylight/Firefox/firefox.ico
    Icon=/residence/skylight/Firefox/firefox.ico



    save the file by:
    crtl+x
    then press Y and enter

    Notes :
    Take note of the code beneath:
    Exec=gnome-terminal -e “firefox –new-instance –ProfileManager”
    what I daring is the command that’s run within the terminal, and gnome-terminal -e is the command to run the terminal when the quick minimize is clicked.

  • Change the entry rights of the file, by including the executable attribute to the Linux file:

    sudo chmod +x firefox.desktop

  • Following are the outcomes of the shortcut that seems on the desktop. After efficiently including permissions or unique entry rights to the firefox.desktop file, the file will robotically change to match the icon that has been configured.

  • Outcomes of working the shortcut file that has been created:

    The next is info from Firefox – Select Consumer Profile:

    1. Create Profile to create a brand new profile / consumer in Firefox, normally fill within the new consumer identify and consumer file folder.
    2. Rename Profile to vary the profile identify or consumer identify in Firefox.
    3. Delete Profile to delete a profile or consumer in Firefox.
    4. A listing of customers / profiles that you’ve got created will seem and you’ll choose them.
    5. Begin Firefox to run Firefox in keeping with the consumer you could have chosen.

Notice: the steps above will also be utilized as a shortcut to run recordsdata with the *.sh extension by altering the Exec part.

Exec=gnome-terminal -e “sh /directory_location/file.sh”

instance of the command I made for the *.sh file I created:

Exec=gnome-terminal -e “sh /residence/skylight/Firefox/firefox-user.sh”

Be sure to have created a *.sh file and the file you could have created is within the listing you’re going to.

That is all my tutorial… Thanks

~Hopefully that is helpful~

CATEGORIES
TAGS
Share This

COMMENTS

Wordpress (0)
Disqus ( )