Skip to main content
Sagar Sharma

Sagar Sharma

148 posts published

A software engineer who loves to tinker with hardware till it gets crashed. While reviving my crashed system, you can find me reading literature, manga, or watering my plants.

chage command in Linux
Commands

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 ISO as local repository in Rocky Linux
Tutorial

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
Tips

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

/dev/random and /dev/urandom
Explain

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 in Linux
Commands

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
Process Commands

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 number of arguments in Bash
Bash Tips

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 Columns in Bash
Quick Tip

Sort by Column in Bash

Learn various examples of sorting data by columns in bash scripts and Linux command line.

· Sagar Sharma

Fins symbolic links in Linux
Tips

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 in Linux
Network Monitoring Commands

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

ASCII table
Explain

Understanding the ASCII Table

Learn the history of ASCII, character encoding and the ASCII table. Basically everything important associated with ASCII.

· Sagar Sharma

Gunzip command in Linux
Commands

Using gunzip Command in Linux

Learn to use the gunzip command in Linux with these practical examples.

· Sagar Sharma

dev null in Linux
Explain

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 Directories in Linux Command Line
Tips

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

Exa command
Tools

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
Tips

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

dev zero in Linux
Explain

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 Docker on Debian
Docker Tutorials

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

gcc flags
Tips

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 in Linux
Commands

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 port with netcat in Linux
Tips

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

Close open ports in Linux
Quick Tip

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 in Linux
Commands

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

UUID of a disk partition in Linux
Tips

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
Tips

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
Tips

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

duf command in Linux
Tools

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
Explain

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

etc hosts file in Linux
Explain

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

See process tree in Linux
Process Handling

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