Skip to main content
Sagar Sharma

Sagar Sharma

157 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.

logging in firewalld
Firewalld Basics

Enabling Logs with firewalld

Logs help you understand what's going on with your firewall like how many bad attempts it detected.

ยท Sagar Sharma

Check Firewalld status
Firewalld Basics

Checking Firewalld status

It is important to check the status of the firewall to see if it's running or disabled.

ยท Sagar Sharma

open firewall ports in firewalld
Firewalld Basics

Opening Ports in firewalld

Learn how to open a specific port number or open ports for a specific service in firewalld.

ยท Sagar Sharma

Listing firewalld Rules
Firewalld Basics

Listing firewalld Rules

Wondering what firewall rules are put in place by firewalld tool? Here's how to know that.

ยท Sagar Sharma

Enable, Disable and Restart firewalld
Firewalld Basics

Enable, Disable and Restart firewalld

Learn about managing the firewall by enabling, disabling and restarting firewalld.

ยท Sagar Sharma

Powerlevel10k in Zsh
Using Zsh

Install and Use Powerlevel10k in Zsh

10x your Zsh setup with Powerlevel10k

ยท Sagar Sharma

Set Environment Variables in zsh
Using Zsh

Setting Environment Variables in zsh

Learn to set environment variables in Zsh, be it temporary or permanent.

ยท Sagar Sharma

Customizing Zsh Prompt
Using Zsh

Customizing Zsh Prompt

Give your zsh a good-looking, useful prompt. Here's how.

ยท Sagar Sharma

Enabling Auto Suggestion in Zsh
Using Zsh

Enabling Auto Suggestion in Zsh

Get command completion suggestions based on your command history.

ยท Sagar Sharma

zsh command history
Using Zsh

Using Command History in Zsh

Not getting command history in Zsh? Here's how to enable it.

ยท Sagar Sharma

Install command in Linux
Commands

Using Install Command in Linux

The install command lets you copy file with advanced parameters. See some examples in this article.

ยท Sagar Sharma

Help Command in Linux
Commands

Using the Help Command in Linux

This article will 'help' you use the help command more effectively so that you can easily see what options a command has and how it works.

ยท Sagar Sharma

Find Current User Account in Linux
Quick Tip

How to Find Current User Account in Linux

Here's a quick tip about getting the current user detail in Linux command line.

ยท Sagar Sharma

Add to Path in Linux
Tips

Add to Path in Linux

Installed a new software and want to run it from anywhere? You need to modify the PATH variable. Learn how to add to path in this quick tutorial.

ยท Sagar Sharma

flock command
Process Commands

flock Command Examples

A less common but helpful in certain scenarios, flock command is used for locking certain files in Linux.

ยท Sagar Sharma

Use eval Command in Linux
Commands

Use eval Command in Linux

The eval command let's you execute arguments as a shell command. You can combine arguments into a single string, use the result as input to the shell and execute the resulting commands.

ยท Sagar Sharma

Start systemd Services on Boot
Quick Tip

How to Start systemd Services on Boot

Learn to automatically start systemd services at boot time in this quick Linux tip.

ยท Sagar Sharma

Use hash Command in Linux
Commands

Use hash Command in Linux

The hash command in Linux allows you to quickly get the list of commands you executed in the current session.

ยท Sagar Sharma

utmp, wtmp, and btmp
Explain

What are utmp, wtmp, and btmp Files in Linux?

The utmp, wtmp and btmp files has nothing to do with time. They store records of login related activities. Learn more about them.

ยท Sagar Sharma

Bash: Read Into an Array
Bash Tips

Use Read Command to Get User Inputs Into an Array in Bash

Learn how to use the read command to get the user input into an array in bash scripts.

ยท Sagar Sharma

logname command in Linux
Commands

Use logname Command in Linux

One of the simplest commands, logname gives you the name of the currently logged in user in Linux.

ยท Sagar Sharma

Bash command substitution
Bash Tips

Using Command Substitution in Bash Shell

Command substitution is an important feature that allows you to store the output of a command into a variable.

ยท Sagar Sharma

systemctl command examples
Commands

Using systemctl Command

The systemctl command is a must know for Linux systems with systemd init system. Here are some practical examples.

ยท Sagar Sharma

ps -ef Command Examples
Quick Tip

ps -ef Command Examples

The ps command coupled with the ef flag gives you all the processes running on the system along with addition details.

ยท Sagar Sharma

test operators in bash
Bash Tips

Test Operators in Bash

Get a brief look at all the test operators available in bash.

ยท Sagar Sharma

Using ls command recursively
Tips

Use ls Command Recursively

Here are various examples and usage of the ls command in recursive mode.

ยท Sagar Sharma

gcc vs g++ compilers
Explain

gcc vs g++: What's the Difference?

gcc and g++ compilers work quite similar when it comes to compiling C programs in Linux. Here's how they are different from each other.

ยท Sagar Sharma

Listing USB devices in Linux
Tips

How to List USB Devices in Linux

Want to identify the USB devices connected to your system? Here are multiple ways to list USB devices in Linux command line.

ยท Sagar Sharma

Sort du command output based on size
Tips

Sort du Command Output by Size

Learn to use the du command with sorted output based on size.

ยท Sagar Sharma

Finger command in Linux
User Identification

finger Command in Linux

Get logged in user information with the classic finger command in Linux.

ยท Sagar Sharma