Exploring the Linux procfs (/proc)

Procfs  is a virtual file system. Every file contained by the procfs is a region of the RAM memory (stored phisically on the RAM) that offers information about the system. Procfs gives us both, information about the processes running in

The Linux /etc/group file

The /etc/group file stores information about groups. By default, it can be viewed by every user, bot modified only by root. This file is modified by the groupadd or groupmod commands: $ ls -l /etc/group -rw-r–r– 1 root root 1164

How to create and delete groups in Linux with groupadd and groupdel

Groups are important in Linux systems. In order to have a well secured distro, you will need to set security rules on both users and groups. The information about the groups is stored in /etc/group. How to create groups in

The Linux/Unix /etc/passwd file

The /etc/password file is very important on Unix systems because it stores information about all the user accounts in the system. It is readonly, the users can read the file, but not to modify it, unless they have superuser priviledges.

How to safely edit /etc/passwd , /etc/shadow and /etc/group in Linux

Do not edit the /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow by hand !!! If a user tries to change it’s account / group info while root is editing the files by hand (ex: vim /etc/passwd), the /etc files will not pe

How to convert packages with alien: RPM to DEB, DEB to RPM

Alien is used for converting packages. You can convert packages to RPM, to DEB, to Slackware tgz, to LSB, to Stampede slp package or to Solaris pkg package. How to install alien? on Debian: sudo apt-get install alien on Fedora:

What is Molly-Guard and how to install it

Molly-Guard is a usefull and easy to use tool. It prevents you from accidentally shutting down your Linux. This is very good when you are connected as root on ssh and by mistake you shutdown the remote server instead of

How to remove files by their inode

Sometimes we have to remove files with weird names, like “-h”. rm -h does not work because the shell sees “-h” as a command option. So, how can we delete these file? Simple: by it’s inode. A file’s inode can

How to install the zsh shell in Linux; how to set it as a default login shell

Z shell’s (zsh) popularity has increased in the last years. I have not moved too zsh yet, but I am going to do that. zsh is not installed in Linux by default, but it can be installed¬†easilly with a package



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