Skip to content
  • Ubuntu
    • Ubuntu 20.04 Guide
    • Ubuntu 18.04
  • Debian
  • Redhat / CentOS / AlmaLinux
  • Fedora
  • Kali Linux
Linux Tutorials – Learn Linux Configuration
  • Linux Tutorials
  • System Admin
  • Programming
  • Multimedia
  • Forum
  • Linux Commands
  • Linux Jobs

programming

An example of comparing two strings in a Bash script on Linux

Bash script: String comparison examples

4 March 2022 by Korbin Brown

The need to compare strings in a Bash script is relatively common and can be used to check for certain conditions before proceeding on to the next part of a script.

Read more

Categories Programming & Scripting
Example of how to make a Bash script exit from within the script

How to exit from Bash script

4 March 2022 by Korbin Brown

If you are writing a Bash script or even just executing one, an essential thing you will need to know is how to exit from a Bash script.

Read more

Categories Programming & Scripting
Simple example of using conditional statements and operators in a Bash script on Linux

Bash Scripting: Conditionals

4 March 2022 by Korbin Brown

A conditional in Bash scripting is made up of two things: a conditional statement and one or more conditional operators.

Read more

Categories Programming & Scripting
Switching between multiple compiler versions on Ubuntu 22.04 Jammy Jellyfish Linux

How to switch between multiple GCC and G++ compiler versions on Ubuntu 22.04 LTS Jammy Jellyfish

28 February 2022 by Korbin Brown

The GCC compiler is used to compile C programs on a Linux system and the G++ compiler is used to compile C++ programs. Both have numerous versions available for installation on Ubuntu 22.04 Jammy Jellyfish.

Read more

Categories Ubuntu, Ubuntu 22.04
How to check the number of arguments passed to a Bash script

Bash script: Number of arguments passed to the script

28 February 2022 by Korbin Brown

In some Bash scripts, there is an option to pass arguments to the script when you are executing it. This allows the user to specify more information in the same command used to run the script.

Read more

Categories Programming & Scripting
How to set a variable in a Bash script

Bash Script: Set variable example

28 February 2022 by Korbin Brown

If you are writing a Bash script and have some information that may change during the execution of the script, or that normally changes during subsequent executions, then this should be set as a variable.

Read more

Categories Programming & Scripting
How to write a nested if statement in a Bash script

Bash Scripting: Nested if statement

28 February 2022 by Korbin Brown

An if statement in a Bash script is the most basic way to use a conditional statement.

Read more

Categories Programming & Scripting
Using a case statement inside of a Bash script on Linux

Bash Script: Case statement examples

28 February 2022 by Korbin Brown

If you already have some experience with writing Bash scripts, then you have probably needed to use conditional statements in the past. You may already be familiar with using if statements in a Bash script. Case statements work similarly but are more scalable and can handle many possibilities with ease.

Read more

Categories Programming & Scripting
Execution of a Hello World Bash script on Linux

Bash Script: Hello World Example

24 February 2022 by Korbin Brown

When getting started with a new scripting or programming language, such as Bash scripting on Linux, the first thing a user learns to create is a Hello World script.

Read more

Categories Programming & Scripting
Two different ways to execute a command from within a Bash script

Bash Scripting: Execute command from within the script

24 February 2022 by Korbin Brown

Bash scripts are, essentially, just a series of Linux commands that have been chained together in order to accomplish something. Depending on your code, there are a few different ways to execute commands inside the script.

Read more

Categories Programming & Scripting
Example of performing arithmetic operations in a Bash script on Linux

Bash Scripting: Arithmetic operations

24 February 2022 by Korbin Brown

The need to perform basic arithmetic operations is common in all types of programming, including in Bash scripts. A Linux system has multiple ways to perform arithmetic operations, and it is up to the user to decide the best method for the scenario at hand.

Read more

Categories Programming & Scripting
IntelliJ IDEA on Ubuntu 22.04 Jammy Jellyfish

How to install IntelliJ IDEA on Ubuntu 22.04 Linux Desktop

14 February 2022 by Korbin Brown

IntelliJ IDEA is a free Java IDE that can be installed on Ubuntu 22.04 Jammy Jellyfish. It is developed by JetBrains and has both a free community edition and a commercial edition.

Read more

Categories Ubuntu, Ubuntu 22.04
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page16 Next →

NEWSLETTER

Subscribe to Linux Career Newsletter to receive latest news, jobs, career advice and featured configuration tutorials.

SUBSCRIBE

WRITE FOR US

LinuxConfig is looking for a technical writer(s) geared towards GNU/Linux and FLOSS technologies. Your articles will feature various GNU/Linux configuration tutorials and FLOSS technologies used in combination with GNU/Linux operating system.

When writing your articles you will be expected to be able to keep up with a technological advancement regarding the above mentioned technical area of expertise. You will work independently and be able to produce at minimum 2 technical articles a month.

APPLY NOW

TAGS

18.04 administration apache applications backup bash beginner browser centos centos8 commands database debian desktop development docker error fedora filesystem firewall gaming gnome Hardware installation java kali manjaro multimedia networking nvidia programming python redhat rhel8 scripting security server ssh storage terminal ubuntu ubuntu 20.04 virtualization webapp webserver
ABOUT US

FEATURED TUTORIALS

  • VIM tutorial for beginners
  • How to install the NVIDIA drivers on Ubuntu 20.04 Focal Fossa Linux
  • Bash Scripting Tutorial for Beginners
  • How to check CentOS version
  • How to find my IP address on Ubuntu 20.04 Focal Fossa Linux
  • Ubuntu 20.04 Remote Desktop Access from Windows 10
  • Howto mount USB drive in Linux
  • How to install missing ifconfig command on Debian Linux
  • AMD Radeon Ubuntu 20.04 Driver Installation
  • Ubuntu Static IP configuration
  • How to use bash array in a shell script
  • Linux IP forwarding – How to Disable/Enable
  • How to install Tweak Tool on Ubuntu 20.04 LTS Focal Fossa Linux
  • How to enable/disable firewall on Ubuntu 18.04 Bionic Beaver Linux
  • Netplan static IP on Ubuntu configuration
  • How to change from default to alternative Python version on Debian Linux
  • Set Kali root password and enable root login
  • How to Install Adobe Acrobat Reader on Ubuntu 20.04 Focal Fossa Linux
  • How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux
  • How to check NVIDIA driver version on your Linux system
  • Nvidia RTX 3080 Ethereum Hashrate and Mining Overclock settings on HiveOS Linux

LATEST TUTORIALS

  • Introduction to Vagrant
  • Check CPU and RAM usage of a Kubernetes pod
  • Kubernetes vs Docker, what’s the difference?
  • Install and Use MicroK8s on Ubuntu
  • How to Create and Manage a Pod in Kubernetes
  • How to Create, Manage, and Expose a Service in Kubernetes
  • Control CPU and RAM usage in Kubernetes
  • How to Setup Minikube for Kubernetes
  • Choosing a Kubernetes Networking Addon
  • What is Kubernetes used for?
  • How to create a cron job in Kubernetes
  • kubeadm vs minikube, pros and cons
  • How to Create a Kubernetes Cluster
  • How to use helm package manager for Kubernetes
  • How to deploy WordPress on a Kubernetes cluster
  • kubectl command examples (cheat sheet)
  • How to manage and troubleshoot Kubernetes logs
  • How to Install Kubernetes on All Linux Distros
  • How to Manage Kubernetes Clusters With kubectl
  • How to Deploy an Application in Kubernetes
© 2023 TOSID Group Pty Ltd - LinuxConfig.org
  • Linux Tutorials
  • System Admin
  • Programming
  • Multimedia
  • Forum
  • Linux Commands
  • Linux Jobs