≡ Menu

Linux Commands

On your Linux server, having proper SELinux security context for files and directories is very important. When you add your custom file to a directory that is already managed by SELinux policy, and if your custom file doesn't have the proper SELinux context, then you will not get the expected result. restorecon stands for Restore [...]

{ 1 comment }

If you are a sysadmin, managing your Linux server's hard disk partition is a critical task. In this tutorial, we'll focus on how to use sfdisk command-line utility to manage your hard disk partitions. While sfdisk is similar to fdisk, there are few partition manipulation activities that are very easy to perform in sfdisk. For [...]

{ 1 comment }

The GNU Binary Utilities, usually called as binutils, is a collection of development tools that handle assembly files, object files, and libraries. The new generation of programming languages that came in the last few years are really masking the functionality of these utilities, as they happen in the background. So, many developers are not exposed [...]

{ 0 comments }

Q: I have multiple yum repositories on my system. For example, centos, epel, docker, mongo, etc. When I execute yum update command, installed packages from all the repositories are updated. How can I exclude a specific repository during yum update? A: During yum update, to exclude packages that belongs to a specific repository, use any [...]

{ 1 comment }

20 Zypper Command Examples to Manage Packages on SUSE Linux

yum is for CentOS and Redhat. apt-get is for Debian and Ubuntu. In the same way, zypper is for SUSE Linux. Zypper is a command line tool for package management in OpenSUSE and SUSE Enterprise Linux platforms. On a high-level, you can manage two different things using zypper command: Manage Packages: Zypper is used to [...]

{ 8 comments }

12 CUPS lpadmin Command Examples to Setup Printers on Linux

CUPS stands for Common UNIX Printing System. lpadmin is a command line tool used to configure printer and class queues provided by CUPS. A system running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer. It can also be used to set the [...]

{ 8 comments }

This tutorial explains the process of building useful multi­-part commands piece by piece. To build complex commands in the terminal, we need to understand piping. Piping is basically taking the output of one command and sending it to another command as input. This is done with the | (pipe) symbol. Last month, a small project [...]

{ 2 comments }

7 Patch Command Examples to Apply Diff Patch Files in Linux

When there is a security fix available for a particular software, we typically do a binary upgrade using the package management tools like yum or apt-get. But, there might be situation where you have installed a software by compiling it from the source code. In those situation, how do you apply the security fix to [...]

{ 7 comments }