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.

Connect to SSH server on Alternate Port
SSH Basics

Connect to SSH Server on Alternate Port

Here's a beginner's guide for adding an alternate port to SSH server and the steps for connecting to it.

· Sagar Sharma

Comments in YAML
Quick Tip

How to Add Comments in YAML

New to YAML? See how to add single-line, inline comments in YAML. Also learn about commenting out multiple lines quickly.

· Sagar Sharma

File locking in Linux
Tutorial

File Locking in Linux

File locking in Linux is the solution by which you can ensure that the file for reading/writing is going to be handled safely.

· Sagar Sharma

Beginning end of file in Linux
Nano Essentials

Jump to the Beginning and End of File in Nano

Nano is an excellent beginner-friendly text editor for Linux command line. Learn to quickly go to the beginning or end of files in Nano.

· Sagar Sharma

Pretty print JSON file in Linux terminal
Tips

Pretty Print JSON in Linux Command Line

JSON is human-readable markup language but reading it in the terminal might be difficult. Learn to format JSON content in a structured way.

· Sagar Sharma

Pretty print XML in Linux command line
Tips

Pretty Print XML in Linux Command Line

XML is human-readable markup language but reading it in the terminal might be difficult. Learn to format XML content in a structured way.

· Sagar Sharma

How to Use SIGINT and Other Termination Signals in Linux
Quick Tip

How to Use SIGINT and Other Termination Signals in Linux

Terminating executing process is more than just kill -9. Here are some of the prominent termination signals and their usage.

· Sagar Sharma

Exclude files from tar
Tips

Exclude Files and Directories While Creating Tar File

Don't want all the files in your tarball? Here's how to exclude files and folders while creating tar archive file.

· Sagar Sharma

find regex command
Tips

Using Find Command With Regex

Enable the beast mode of the find command by using regex for your search.

· Sagar Sharma

Redirect to dev null in Linux
Tips

How to Redirect Output and Error to /dev/null in Linux

Learn how to redirect output or error or both to /dev/null in Linux so that it doesn't show up on the screen.

· Sagar Sharma

List files recursively in Linux command line
Quick Tip

How to List Files Recursively in Linux command line

Want to list files recursively and see the contents of all the subdirectories in Linux? Here's how you can do that.

· Sagar Sharma

Create loop devices in Linux
Tutorial

How to Create a Virtual Block or Loop Device in Linux

Loop device is getting popular in Linux, specially for isolation. Here's a quick guide on creating loop devices on Linux.

· Sagar Sharma

Print Environment Variables in Linux
Tips

How to Print Environment Variables in Linux

Wondering what environment variables are set on your current shell? Learn how to print environment variables in Linux.

· Sagar Sharma

Follow Symbolic Links in Linux
Tips

How to Follow Symbolic Links

You got a symbolic link and wondering about the actual source file? Here's how to follow symlinks in Linux.

· Sagar Sharma

Send DELETE Request With Curl
Quick Tip

How to Send a DELETE Request With curl

Here are practical examples and demonstrations of sending DELETE requests with Curl.

· Sagar Sharma

Merge files
Quick Tip

Merge Files in the Linux Command Line

Learn various ways of merging multiple files into another file in the Linux command line.

· Sagar Sharma

Ignore SSL certificate error with curl
Quick Tip

Ignore SSL Certificate Error with cURL

Getting an expired certificate error while downloading files with curl? Here's how to ignore it.

· Sagar Sharma

Ignoring SSL certificate error with wget command
Troubleshooting

Ignore SSL Certificate Error with Wget

Getting an expired certificate error while downloading files with wget? Here's how to ignore it.

· Sagar Sharma

Find non-ascii characters in Linux
Tips

Find non-ASCII Characters in Text Files in Linux Command Line

Got a text file with non-ascii characters? Here's how to find those characters in Linux command line.

· Sagar Sharma

Exclude directories while using find command
Quick Tip

Exclude Directories While Using Find Command

By default, find command searches in the specified directory and all its subdirectories. You can refine your search by excluding directories while using find command.

· Sagar Sharma

Common networking port numbers in Linux
Tips

Common Networking Port Numbers in Linux

Here are the common networking ports you'll encounter in Linux.

· Sagar Sharma

ifup, ifdown Linux commands
Commands

Using ifup, ifdown, and ifquery commands in Linux

The ifup, ifpdown and ifquery are parts of the same package and help you troubleshoot the network interfaces in Linux.

· Sagar Sharma

Find empty directories in Linux
Quick Tip

Find Empty Directories in Linux Command Line

Here are a few examples of finding and deleting empty directories in the Linux command line.

· Sagar Sharma

Perl script in Linux
Quick Tip

How to Run Perl scripts in Linux Command Line

Learn to learn Perl scripts in Linux command line. Also learn a few tricks about running Perl commands without saving them in files.

· Sagar Sharma

Find recently modified files
Quick Tip

Find Files Modified in Last N Minutes in Linux

Finding recently modified files is a helpful parameter when troubleshooting your code or server. Learn how to find modified files in Linux command line.

· Sagar Sharma

Remove exif data from images in Linux command line
Tutorial

Remove Exif Data in Linux Command Line

Exif data can be a privacy threat if you upload images on the internet. Here's how to remove it in the Linux command line.

· Sagar Sharma

Linux Shell
Explain

What is Dash Shell in Linux?

Not many people are aware of a dash shell which is usually found in the Debian Linux distribution. Here's a quick introduction.

· Sagar Sharma

find exec command in Linux
Commands

How to Use the find Command With exec

Find works on searching files based on a number of criteria. The exec command gives you the ability to work on those results. Here are some examples of find exec command combination.

· Sagar Sharma