How to change the umask in Linux and Unix

The umask is used for setting up the default permissions in Linux and Unix. The default umask valus is 0022. The umask representation is diffrent than the chmod octal represetantion. I will explain you why. The default permission of the

How to set the SetUID and SetGID bit for files in Linux and Unix

The setuid (set user id) is a permission bit, that allows the users to exec a program with the permissions of its owner. The setgid (set group id) is a bit that allows the user to exec a program with

How to use the sticky bit in Linux and Unix

The sticky bit is set on directories to forbid all the users in the system to rename or delete the directory or the files/directories inside the directory, except the owner and root, even if they have 777 permissions. To set

How to change file and folders permissions with chmod – part 2

Previously, I have showed you how to change the file and folder access rights, by using the symbolic method. In this article I will show you how to change the file permissions in the octal mode (with numbers). The chmod

How to replace one string with another in a file

In this short article I will show you how to replace a string with another, globally, everywhere it is found. I needed this to replace one extension with another: $ rename ‘-s/\.JPG$/.jpg/’ * This little oneliner looks in all the

How to change file and folder permissions with chmod – part 1

Permissions can be set in the octal mode (with digits), or with letters. In this article, we will change the file and folder access rights in the human readable representation with chmod. In Linux and Unix systems, the file and

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

Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

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