Tag Archives: Command Examples

21 ss Command Examples In Linux

SS Command Examples For Linux

The Socket Statistics (ss) command is similar to netstat, in that it is used to display useful network socket information.

For some time now the netstat manual page has noted “This program is obsolete. Replacement for netstat is ss.”, so this is going to be a useful command to know how to use moving forward.

Fortunately a lot of the options are similar to the ones used by netstat, however there are a few differences as we will see.

Read more »

13 du (Disk Usage) Command Examples In Linux

DU Disk Usage Command Examples In Linux

Here we’re going to cover how to find out what is using disk space in Linux with the ‘du’ disk usage command.

This command is extremely useful for tracking down large files, allowing you to find large files and free up precious disk space.

Read more »

11 rm Command Examples For Linux

rm Command Examples For Linux

The ‘rm’ command is used to delete files and directories, rm comes from the GNU Coreutils package and should be available by default in Unix/Linux based operating systems.

By the end of this guide you should know how to use rm to remove files and directories in Linux by following these practical examples.

Read more »

11 touch Command Examples For Linux

Touch Command Examples For Linux

The ‘touch’ command is used to modify the time stamp of an existing file, or to create new empty files.

Touch comes from the GNU Coreutils package and should be available by default in Unix/Linux based operating systems.

The practical examples throughout this guide will show you how to use the touch command.

Read more »

25 Useful DNF Command Examples For Package Management In Linux

DNF Command Examples For Linux

Dandified Yum (DNF) is an RPM based package manager which is used to install and update packages in various Linux distributions including CentOS, RHEL and Fedora.

DNF is the next major verison of Yum and as such it aims to maintain CLI compatibility with Yum, so a lot of the information here will be similar to our yum commands.

Like Yum, DNF is quite powerful as it’s capable of automatically resolving dependency issues, and is similar to other package managers such as ‘apt-get’ in Debian based distributions.

These examples should serve as a useful introduction, guide or cheat sheet style resource for how to use the dnf command in Linux.

Read more »

12 Dig Command Examples To Query DNS In Linux

Dig Command Examples Linux

Dig (domain information groper) is a tool that is used for querying DNS servers for various DNS records, making it very useful for troubleshooting DNS problems.

By the end of this guide you will know how to use dig to perform different types of DNS lookups in Linux.

Read more »

11 ip Command Examples For Linux

IP Command Examples For Linux

The ‘ip’ command is used to print out various network information in Linux. It replaces the deprecated ‘ifconfig’ command, which is not even installed by default in CentOS 7.

The ip command is part of the iproute package, which is installed by default in most modern Linux distributions.

In the examples here you’ll see how to use the ip command to show network configuration such as link information, IP addresses and routing.

Read more »

14 Simple df (Disk Free) Command Examples For Linux

df Command Examples In Linux

The ‘df’ command is used to quickly print an overview of the disk space in use on different partitions and file systems.

df comes from the GNU Coreutils package and should be available by default in Unix/Linux based operating systems.

Read more »

23 tar Command Examples For Linux

Tar Archive Command Examples For Linux

The GNU tape archive command, known as ‘tar’, is used to store many different files together into a single archive file. This makes it easy to perform backups and restores of files and directories in Unix/Linux based operating systems.

The practical examples in this guide will show you how to use the tar command in all sorts of different situations.

Read more »

16 Simple cat Command Examples For Linux

Cat Command Examples For Linux

The ‘cat’ command is used to read and concatenate files, printing them out to standard output.

Cat comes from the GNU Coreutils package and should be available by default in Unix/Linux based operating systems.

Read more »