How to manage background and foreground jobs

By default, a process running in the terminal is a process running in the foreground. A process running in foreground takes control over your terminal until it finishes its activity. A process can also run in background. A background process

The bash wildcards: 10 practical examples of how to use them

I have previously written an article about the asterisk and question mark wildcards and another article about the square brackes and the curly brackets wildcards. In post I will give you 10 examples of how to use the wildcards in

How to install, find and remove packages with zypper

In this article I will show you how to use the OpenSUSE‘s zypper package manager to do administrative stuff. Installing, finding and removing packages are easy tasks that every Linux user should be able to do on his favourite distro.

5 Package manager commands every Linux beginner should know

This article is for the Linux beginners. I will show you how to do the most important tasks with your {Ubuntu, Fedora, openSUSE} package managers. In Debian / Ubuntu / Linux Mint: 1. Keep your system up to date: Update

How to temporary configure network interfaces with iproute2

The ip command is newer and better than the old ifconfig. It displays the IP address, the netmask, the broadcast, the MAC address and other information. The ip is better than ifconfig, for a number of reasons: it works for

How to administrate groups with the Unix / Linux gpasswd command

The gpasswd command is used to administer groups in Linux and Unix. It writes group information in /etc/group and /etc/gshadow. Because the gpasswd command works with some files located in /etc, it needs to be used with root priviledges. Any

Exporting variables in shell scripting

The export command is mostly used when setting up a new PATH. You need to export a variable, in order to use it globally. By default, a variable can be used only local, unless it is exported. $ x=/home/razvan $

Just another “Unix and Linux shells” article

Traditionally, the default shell in the Unix systems is dash, for both the users and the system scripts. On GNU / Linux distros, bash has always been the default shell. Some new GNU / Linux distros use dash  as the

Bash wildcards: the square brackets [ ] and the curly brackets { }

In the previous wildcard post, I taught you how to use the asterisk * and the question mark ? wildcards. This article is about other, not so popular wildcards: the square brackets [ ] and the curly brackets {}. Note:

The exit status in shell scripting

Like in the C programs, the exit command terminates a script. It can also return a value which is read by the script’s parent process. The exit status is also known as return status or exit code. By convention, a

Support LinuxG via Patreon
Support on Patreon!


Subscribe to get the latest Linux news and how to guides directly on your e-mail!