
Sagar Sharma
148 posts published

Use the Chage Command in Linux
Learn to use the chage command and manage user account passwords in a more controlled manner.
· Sagar Sharma

Use Rocky Linux ISO as a Local Repository
In DIY mood? See how I experimented to use the Rocky Linux ISO as a local repository.
· Sagar Sharma

Create Home Directory for Existing Users in Linux
Created a user but without the home directory? Worry not. You can add home directory for existing users too. Here's how to do that.
· Sagar Sharma

What are /dev/random and /dev/urandom in Linux?
Both /dev/random and /dev/urandom are used for generating random numbers in Linux. Learn more about them.
· Sagar Sharma

nmap Command Examples in Linux
The nmap command can be used for finding devices on your network, open ports and more. Here are some common uses of nmap.
· Sagar Sharma

pgrep Command Examples
Want to look for a process and its details? The pgrep command helps you with that. Here's how to use it.
· Sagar Sharma

Check the Number of Arguments in Bash
Working on a bash script that accepts arguments and you need to count them? Here's how to check the number of arguments supplied to your script.
· Sagar Sharma

Sort by Column in Bash
Learn various examples of sorting data by columns in bash scripts and Linux command line.
· Sagar Sharma

Find All Symbolic Links in Linux
Looking for all the soft links on your Linux system? Here are a couple of methods to find symbolic links.
· Sagar Sharma

netstat Command Examples
Netstat is one of the most common networking commands in Linux. Learn some useful examples of netstat in this tutorial.
· Sagar Sharma

Understanding the ASCII Table
Learn the history of ASCII, character encoding and the ASCII table. Basically everything important associated with ASCII.
· Sagar Sharma

Using gunzip Command in Linux
Learn to use the gunzip command in Linux with these practical examples.
· Sagar Sharma

What is /dev/null in Linux?
/dev/null is the blackhole equivalent of Linux systems. What is it and why it used?
· Sagar Sharma

Compare Two Directories in the Linux Command Line
Want to see how the content of the two directories differs? Use the diff command and see what files are identical or different.
· Sagar Sharma

How to Install and Use exa on Linux
Exa is a modern replacement to the classic ls command. Apart from git integration, it does several things by default ls cannot do.
· Sagar Sharma

List Mounted Drives in Linux
If you want to perform certain operations on a drive, you need to know its details. Learn how to list currently mounted drives in Linux.
· Sagar Sharma

What is /dev/zero in Linux?
One of the special device files in Linux, /dev/zero is used for creating files filled with zeroes.
· Sagar Sharma

Install Latest Docker on Debian Linux
Docker is available in Debian repositories but it is usually the older version. Here's how you can install the latest Docker versions in Debian.
· Sagar Sharma

Important GCC Flags in Linux
You can use GCC flags to extend the functionality of the GCC compiler. Here are some of the common and yet important flags.
· Sagar Sharma

tree Command Examples in Linux
The tree command is excellent for viewing the structure of a directory and its subdirectories in Linux. Learn how to use it with practical examples.
· Sagar Sharma

Scan Ports With netcat Command in Linux
Netcat is a popular networking utility for Linux based systems. Learn how to use it to scan for open ports.
· Sagar Sharma

How to Find Open Ports and Close Them in Linux
Troubleshooting networks? Here's how to find the open ports and close those open ports in the Linux command line.
· Sagar Sharma

traceroute Command Examples in Linux
One of the most common Linux networking commands is traceroute. It is used for tracing the route to the end server. Here's how to use the traceroute command.
· Sagar Sharma

How to Get the UUID of a Disk Partition in Linux
UUID is a property of disk partitions used to uniquely identify them. Here are various ways to get the UUID of a disk partition in the Linux command line.
· Sagar Sharma

Concatenate Files in Linux Command Line
Want to concatenate two files in the Linux command line? Here's how to do that with the cat command.
· Sagar Sharma

Enable Timestamp in History Command in Linux
You can easily see which commands you ran in the past. But do you know when did you run it? The history command can tell you that as well.
· Sagar Sharma

How to Use the duf Command in Linux
The duf command is a modern utility that combines the features of the du and df commands in a pretty and structured way.
· Sagar Sharma

top vs htop: What's the Difference?
Both top and htop are similar command line tools used for system monitoring in Linux. Here's how they are different from each other.
· Sagar Sharma

What is the Purpose of /etc/hosts File in Linux
The /etc/hosts file is an integral part of the Linux system. But what is it used for?
· Sagar Sharma

Show Process Tree in Linux
Here are multiple commands that you can use to show the process tree in the Linux command line.
· Sagar Sharma