Smart functions every Linux and Unix user should use

Smart functions every Linux and Unix user should use

In this tutorial we will discuss about the topic Smart functions every Linux and Unix user should use.

Every Linux and Unix user must have this type of functions in their ~/.bashrc file, for an easier Linux and Unix navigation. This functions start some graphical applications in the background, so that the terminal remains free for usage.

function gedit
{
command gedit "$@" &
}

Now, when you type gedit in your terminal, the system will start gedit in the background so that the terminal remains usable. The same logic is applied to the other functions. These are the functions for the programs I use the most.

It is as simple as it looks, replace “gedit” or “firefox” with the grafical app you want to start in the background. Read this article to understand how to create simple bash functions.

function gpdf
{
command gpdf "$@" &
}

function gimp
{
command gimp "$@" &
}

function audacious
{
command audacious "$@" &
}

function firefox
{
command firefox"$@" &
}

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!
 
Enjoyed this video?
Smart functions every Linux and Unix user should use
"No Thanks. Please Close This Box!"