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 using different kinds of quotation in a Bash script on Linux

Bash script: Quotation explained with examples

11 March 2022 by Korbin Brown

Quotation on a Linux system can be a source of confusion at first. Single quotes ' and double quotes " are treated differently in Bash, and you will need to know the difference if you are writing a Bash script.

Read more

Categories Programming & Scripting
Receiving the Unexpected end of file error from executing a Bash script on Linux

Bash script: Unexpected end of file error

11 March 2022 by Korbin Brown

An Unexpected end of file error in a Bash script usually occurs when you there is a mismatched structure somewhere in the script.

Read more

Categories Programming & Scripting
An example of using getopts to read input flags from within a Bash script

Bash Script: Flags usage with arguments examples

9 March 2022 by Korbin Brown

If you have any experience on the Linux command line, then you should have run into command flags, which help us modify the behavior of a command that we are executing.

Read more

Categories Programming & Scripting
An example of a pause in a Bash script on Linux

Bash script: Pause script before proceeding

8 March 2022 by Korbin Brown

Normally, a Bash script will execute each line of code the moment it reaches it, then immediately move on to the next. But it is also possible to add pauses to a Bash script in order to delay it or allow the user time to respond to a prompt, etc.

Read more

Categories Programming & Scripting
An example of a yes or no prompt in a Bash script on Linux

Bash script: YES/NO prompt example

7 March 2022 by Korbin Brown

Interactive Bash scripts will often include a yes or no prompt in order to ask for user verification before proceeding with a set of instructions or canceling the procedure.

Read more

Categories Programming & Scripting
Example of how to read input from the command line in a Bash script

Bash Scripting: Read input from command line

7 March 2022 by Korbin Brown

We can make a Bash script interactive by prompting a user for input. This can be done from the command line, with our script waiting for user input in order to proceed further.

Read more

Categories Programming & Scripting
How to use a shebang in a Bash script on Linux

Bash script: Shebang usage and best practices

4 March 2022 by Korbin Brown

If you have looked at some of our Bash script examples across our website, or seen some others online to learn from, you may have noticed that all of the Bash scripts begin with a shebang.

Read more

Categories Programming & Scripting
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
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page15 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 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 video 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

  • The Future of Linux Jobs in the Age of Automation
  • How to set default programs using update-alternatives on Debian-based distributions
  • How to improve and debug your shell scripts with ShellCheck
  • How to Create a Flatpak Application from Scratch
  • Fixing the Error creating sandbox error in Flatpak
  • How to fix the Error updating application in Flatpak
  • What to do if you encounter a Checksum mismatch error in Flatpak
  • Resolving the Dependency not found error in Flatpak
  • Setting Up a Flatpak Remote Repository to Make Installing Apps Easier
  • How to Create and Publish Flatpak Packages
  • Snapd vs Flatpak vs Appimage: Cons and Pros review
  • Resolving the Error updating runtime error in Flatpak
  • Solving the Error installing application in Flatpak
  • How to fix the Permission denied error in Flatpak
  • Understanding Flatpak Security and Permissions
  • Flatpak: Enhancing Security with Application Sandboxing
  • Flatpak offline repository usage
  • Troubleshooting the Application not found error in Flatpak
  • An Introduction to Flatpak App Bundles
  • Flatpak vs FlatHub: A Comparison of Linux App Installers
© 2023 TOSID Group Pty Ltd - LinuxConfig.org
  • Linux Tutorials
  • System Admin
  • Programming
  • Multimedia
  • Forum
  • Linux Commands
  • Linux Jobs