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.

Save Linux command output to text file
Tips

Redirect Linux Command Output to File

Want to analyze the effect of Linux command for later? Here's how you can save Linux command output to a file.

· Sagar Sharma

Shell built-in commands list
Commands

Shell Built-in Commands

In Linux, there are shell built-in commands which you are already using but never paid attention to. Learn more about them in this tutorial.

· Sagar Sharma

Clear PIP cache
Tips

Clearing Pip Cache

Cleaning Pip cache helps you in troubleshooting and getting fresh Python packages.

· Sagar Sharma

Read file line by line in Bash
Bash Tips

Read File Line by Line in Bash

Here are a couple of ways for reading file line by line in the Bash shell.

· Sagar Sharma

Run Multiple Linux Commands
Tips

Run Multiple Linux Commands in One Go

In this quick, beginner's tip, learn to run multiple Linux commands one after another in a single command.

· Sagar Sharma

For Loop with Array in Bash
Bash Tips

Use For Loop With Array in Bash

In this Bash scripting example, learn how to use for loop with arrays.

· Sagar Sharma

Check if variable is empty in Bash
Bash Tips

Check if Variable is Empty in Bash

Learn various ways to check if a variable is empty in bash.

· Sagar Sharma

Systemctl check service Status
Quick Tip

Use Systemctl Status Command to Check Service Status

Learn how to check and understand the status of a systemd service using the systemctl command.

· Sagar Sharma

Bash array length
Bash Tips

Get Array Length in Bash

In this quick bash tip, learn about calculating the array length.

· Sagar Sharma

System calls in Linux
Explain

System Calls in Linux

System calls are an integral part of the Linux architecture. Learn about the most common types of system calls in Linux.

· Sagar Sharma

Suspend process in Linux
Process Handling

Suspend and Resume Processes in Linux

Learn how to suspend a running process in the Linux command line. Also learn how to resume a stopped process.

· Sagar Sharma

Arrays in bash
Bash Tips

Appending to Arrays in Bash

In this quick Bash tip, you'll learn about appending to an existing array in bash.

· Sagar Sharma

Using exec command in Bash shell scripts
Bash Tips

Using exec Command in Bash Shell Scripts

The exec command in shell scripts is super useful for logging, reading from files and running commands by replacing the current process.

· Sagar Sharma

tmp directory in Linux
Tips

Everything Essential About the tmp Directory in Linux

Learn some crucial things about the /tmp directory. You'll also learn how it is different from the /var/tmp directory.

· Sagar Sharma

$0 in Bash
Bash Tips

What is $0 in a Bash Script?

Get familiar with the special variable $0 in Bash and learn its usage.

· Sagar Sharma

Force Linux User to Change Password at Next Login
Quick Tip

Force Linux User to Change Password at Next Login

Think the passwords need to be changed by a certain user? Here's how to force a Linux user to change the password at the next login.

· Sagar Sharma

chattr command in Linux
File Properties Commands

chattr Command Examples

With chattr command, you can make a file 'undeletable' even by root. Here are some common usage of the chattr command in Linux.

· Sagar Sharma

Bash special variables
Bash Tips

Special Variables in Bash Shell Scripting

The bash shell has some special variables that have specific usages and purposes. Learn more about them here.

· Sagar Sharma

Mount point does not exist error in Linux
Troubleshooting

Fixing Mount Point Does Not Exist Error in Linux

Learn how to troubleshoot and fix the 'mount point does not exist' error in Linux with our step-by-step guide.

· Sagar Sharma

Umount target is busy in Linux
Troubleshooting

Fixing 'Umount Target is Busy' Error in Linux

A not-so-uncommon error while using umount command is 'target is busy'. Learn what you can do to get rid of this error.

· Sagar Sharma

envsubst Command
Commands

How to Replace Environment Variables Using the envsubst Command

Learn how to replace environment variables using the envsubst command. This guide will show you how with examples and tips.

· Sagar Sharma

Logging in UFW Firewall
Tips

Everything You Need to Know About UFW Logs

Learn all about UFW logs and how to use them effectively. This comprehensive guide covers everything you need to know about UFW logs.

· Sagar Sharma

XXD command in Linux
Commands

Using XXD Command in Linux

Discover how to use the XXD command in Linux with practical examples. This comprehensive guide will help you understand the features and functionality of XXD.

· Sagar Sharma

nmap ping sweep
Tips

Ping Sweep Using nmap on Linux

See what devices are active on your subnetwork using peng sweep with nmap command in Linux.

· Sagar Sharma

Using certbot with Nginx
Tutorial

Create a Web Server with NGINX and Secure it Using Certbot

Certbot makes the SSL certificate deployment and renewal such an effortless process. Learn how to use certbot with Ngnix.

· Sagar Sharma

gzip command in Linux
Commands

How to Use the gzip Command in Linux

gzip is one of the most useful but often overlooked utilities. Learn to use this handy tool.

· Sagar Sharma

Syntax Highlighting in Zsh
Using Zsh

Enable Syntax Highlighting in Zsh

Improve your Zsh experience by enabling syntax highlighting. Here's how to do that.

· Sagar Sharma

Configure and use aliases in zsh
Using Zsh

Configure and Use Aliases in Zsh

Turbo charge your Zsh experience by using aliases for commonly used command combinations.

· Sagar Sharma

oh my zsh
Using Zsh

Install Oh My Zsh and Supercharge Your Zsh Experience

Enahnce your Zsh experience with the awesome Oh My Zsh framework.

· Sagar Sharma

Pigz command for file compression
Commands

Compress Files Faster Using Pigz on Linux

Pigz is a faster compression tool. Learn how to use it for generating .gz compressed file faster in Linux.

· Sagar Sharma