What is Bash Alias and how to add one in Ubuntu 20.04

Linux commands are cool and fun to work with. Be it ls (to list files) or cd (to change the directory), they are already short and precise. This is one of the reasons we love Linux. However, if you have to repeatedly type a set of commands or a long command with too many parameters, its not fun anymore. The Linux creators were caring enough to provide a solution for that too. The solution for such cases is Bash Shell Alias. A Bash Shell Alias(often called as a Bash Alias or simply an Alias ) is an alternate name, usually a short one, given to a command or a set of commands. This article shows how to get started with aliases and how to add them permanently in Ubuntu 20.04. It works for older versions too.

For example, I have to repeatedly type  cd /var/www/html in my day-to-day work. So I want to have a shortcut for it. I can create a custom command, say cdh, which is equivalent of the same. I can do so by typing the following on the terminal.

## Note: there should NOT be an space between cdh and 'cd /var/www/html'
$ alias cdh='cd /var/www/html'

How to add Bash Alias on ubuntu-20.04 - Steps by FoxbitsThe cdh command did not exist before. It is created and works after adding the alias.

If you are seeing this for the first time, I am sure you found it interesting and are excited to learn more about it. So, lets begin with the basics: the Syntax.

General Syntax:

##syntax for adding an alias to bash shell
alias MY_ALIAS_NAME='My_Command or A Set of Commands'

## To be more specific, here are a few samples
alias MY_ALIAS_NAME='My_Command'
alias MY_ALIAS_NAME='My_Command Argument_1, Argument_2 ...'
alias MY_ALIAS_NAME='My_Command_1; My_Command_2'
alias MY_ALIAS_NAME='/PATH/TO/A/SCRIPT'

#ubuntu 20.04 #bash #bash alias

What is GEEK

Buddha Community

What is Bash Alias and how to add one in Ubuntu 20.04

What is Bash Alias and how to add one in Ubuntu 20.04

Linux commands are cool and fun to work with. Be it ls (to list files) or cd (to change the directory), they are already short and precise. This is one of the reasons we love Linux. However, if you have to repeatedly type a set of commands or a long command with too many parameters, its not fun anymore. The Linux creators were caring enough to provide a solution for that too. The solution for such cases is Bash Shell Alias. A Bash Shell Alias(often called as a Bash Alias or simply an Alias ) is an alternate name, usually a short one, given to a command or a set of commands. This article shows how to get started with aliases and how to add them permanently in Ubuntu 20.04. It works for older versions too.

For example, I have to repeatedly type  cd /var/www/html in my day-to-day work. So I want to have a shortcut for it. I can create a custom command, say cdh, which is equivalent of the same. I can do so by typing the following on the terminal.

## Note: there should NOT be an space between cdh and 'cd /var/www/html'
$ alias cdh='cd /var/www/html'

How to add Bash Alias on ubuntu-20.04 - Steps by FoxbitsThe cdh command did not exist before. It is created and works after adding the alias.

If you are seeing this for the first time, I am sure you found it interesting and are excited to learn more about it. So, lets begin with the basics: the Syntax.

General Syntax:

##syntax for adding an alias to bash shell
alias MY_ALIAS_NAME='My_Command or A Set of Commands'

## To be more specific, here are a few samples
alias MY_ALIAS_NAME='My_Command'
alias MY_ALIAS_NAME='My_Command Argument_1, Argument_2 ...'
alias MY_ALIAS_NAME='My_Command_1; My_Command_2'
alias MY_ALIAS_NAME='/PATH/TO/A/SCRIPT'

#ubuntu 20.04 #bash #bash alias

What is Bash Alias and how to add one in Ubuntu 20.04

Linux commands are cool and fun to work with. Be it ls (to list files) or cd (to change the directory), they are already short and precise. This is one of the reasons we love Linux. However, if you have to repeatedly type a set of commands or a long command with too many parameters, its not fun anymore. The Linux creators were caring enough to provide a solution for that too. The solution for such cases is Bash Shell Alias. A Bash Shell Alias(often called as a Bash Alias or simply an Alias ) is an alternate name, usually a short one, given to a command or a set of commands. This article shows how to get started with aliases and how to add them permanently in Ubuntu 20.04. It works for older versions too.

For example, I have to repeatedly type cd /var/www/html in my day-to-day work. So I want to have a shortcut for it. I can create a custom command, say cdh, which is equivalent of the same. I can do so by typing the following on the terminal.

#ubuntu 20.04 #bash alias #ubuntu

Shawn  Pieterse

Shawn Pieterse

1625719345

Upgrade Ubuntu 20.04/20.10 to 21.04 in 2 Ways (GUI & Terminal)

Ubuntu 21.04, codenamed Hirsute Hippo, is released on April 22, 2021. This tutorial is going to you 2 ways to upgrade Ubuntu 20.04/Ubuntu 20.10 to 21.04. The first method uses the graphical update manager and the second method uses command line. Usually, you use the graphical update manager to upgrade Ubuntu desktop and use the command line to upgrade Ubuntu server, but the command-line method works for desktops too.

Ubuntu 20.04 is a long-term support (LTS) release, which will be supported for 5 years. Ubuntu 21.04 is a non-LTS release, which means it will be supported for 9 months only, until January 2022. If you prefer stability over bleeding edge, then stick with Ubuntu 20.04. But if you are the other way around, you can follow this tutorial to upgrade from Ubuntu 20.04 to 21.04.

#ubuntu #ubuntu desktop #ubuntu server #upgrade #ubuntu 20.04

Alycia  Klein

Alycia Klein

1596719640

How To Install Jenkins on Ubuntu 20.04 / Ubuntu 18.04

Jenkins is an open-source automation server that helps to automate the repetitive tasks involved in the software development process, which includes building, testing, and deployments.

Jenkins was forked from the Oracle Hudson project and written in Java.

Here, we will see how to install Jenkins on Ubuntu 20.04 / Ubuntu 18.04.

Install Jenkins On Ubuntu 20.04

Install Java

Since Jenkins is written in Java, it requires Java 8 or Java 11 to run. Here, I will install the OpenJDK 11 for Jenkins installation.

sudo apt update

sudo apt install -y default-jre apt-transport-https wget

If you want to use the Oracle Java in place of OpenJDK, then use any one of the links to install it.

READ: How To Install Oracle Java on Ubuntu 20.04

READ: How To Install Oracle Java on Ubuntu 18.04

Verify the Java version after the installation.

java -version

Output:

openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

Add Jenkins Repository

Jenkins provides an official repository for its packages. To use the Jenkins repository, first, we will need to add the Jenkins public key to the system.

wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -

Then, add the Jenkins repository to your system.

echo "deb https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list

Install Jenkins

Install Jenkins package using the apt command.

sudo apt update

sudo apt install -y jenkins

The Jenkins service should now be up and running. You can check the status of the Jenkins service using the below command.

sudo systemctl status jenkins

#ubuntu #jenkins #ubuntu 18.04 #ubuntu 20.04

Linux Tutorial

1599543060

How To Install Nvidia Drivers On Ubuntu 20.04 / Ubuntu 18.04 | ITzGeek

All Desktops and Laptops come with a graphics card for displaying images over a monitor. Graphics cards either come with a system board or attached to the system board via a PCI-E slot. Nvidia and AMD manufactured graphics cards are the most commonly used graphics cards in laptops or desktops.

Here, we will see how to install Nvidia drivers on Ubuntu 20.04/Ubuntu 18.04.

#ubuntu #nvidia #ubuntu 18.04 #ubuntu 20.04