
Sagar Sharma
157 posts published

Enabling Logs with firewalld
Logs help you understand what's going on with your firewall like how many bad attempts it detected.
ยท Sagar Sharma

Checking Firewalld status
It is important to check the status of the firewall to see if it's running or disabled.
ยท Sagar Sharma

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
Wondering what firewall rules are put in place by firewalld tool? Here's how to know that.
ยท Sagar Sharma

Enable, Disable and Restart firewalld
Learn about managing the firewall by enabling, disabling and restarting firewalld.
ยท Sagar Sharma

Install and Use Powerlevel10k in Zsh
10x your Zsh setup with Powerlevel10k
ยท Sagar Sharma

Setting Environment Variables in zsh
Learn to set environment variables in Zsh, be it temporary or permanent.
ยท Sagar Sharma

Customizing Zsh Prompt
Give your zsh a good-looking, useful prompt. Here's how.
ยท Sagar Sharma

Enabling Auto Suggestion in Zsh
Get command completion suggestions based on your command history.
ยท Sagar Sharma

Using Command History in Zsh
Not getting command history in Zsh? Here's how to enable it.
ยท Sagar Sharma

Using Install Command in Linux
The install command lets you copy file with advanced parameters. See some examples in this article.
ยท Sagar Sharma

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

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

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
The hash command in Linux allows you to quickly get the list of commands you executed in the current session.
ยท Sagar Sharma

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

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

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

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

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
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
Get a brief look at all the test operators available in bash.
ยท Sagar Sharma

Use ls Command Recursively
Here are various examples and usage of the ls command in recursive mode.
ยท Sagar Sharma

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

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 by Size
Learn to use the du command with sorted output based on size.
ยท Sagar Sharma

finger Command in Linux
Get logged in user information with the classic finger command in Linux.
ยท Sagar Sharma