
Sagar Sharma
148 posts published

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

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

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 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
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
Terminating executing process is more than just kill -9. Here are some of the prominent termination signals and their usage.
· Sagar Sharma

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

Using Find Command With Regex
Enable the beast mode of the find command by using regex for your search.
· Sagar Sharma

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

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

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

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

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

How to Send a DELETE Request With curl
Here are practical examples and demonstrations of sending DELETE requests with Curl.
· Sagar Sharma

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
Getting an expired certificate error while downloading files with curl? Here's how to ignore it.
· Sagar Sharma

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 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
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
Here are the common networking ports you'll encounter in Linux.
· Sagar Sharma

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 Command Line
Here are a few examples of finding and deleting empty directories in the Linux command line.
· Sagar Sharma

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

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

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