Sagar Sharma
157 posts published
How to Find Open Ports and Close Them in Linux
Troubleshooting networks? Here's how to find the open ports and close those open ports in the Linux command line.
ยท Sagar Sharma
traceroute Command Examples in Linux
One of the most common Linux networking commands is traceroute. It is used for tracing the route to the end server. Here's how to use the traceroute command.
ยท Sagar Sharma
How to Get the UUID of a Disk Partition in Linux
UUID is a property of disk partitions used to uniquely identify them. Here are various ways to get the UUID of a disk partition in the Linux command line.
ยท Sagar Sharma
Concatenate Files in Linux Command Line
Want to concatenate two files in the Linux command line? Here's how to do that with the cat command.
ยท Sagar Sharma
Enable Timestamp in History Command in Linux
You can easily see which commands you ran in the past. But do you know when did you run it? The history command can tell you that as well.
ยท Sagar Sharma
How to Use the duf Command in Linux
The duf command is a modern utility that combines the features of the du and df commands in a pretty and structured way.
ยท Sagar Sharma
top vs htop: What's the Difference?
Both top and htop are similar command line tools used for system monitoring in Linux. Here's how they are different from each other.
ยท Sagar Sharma
What is the Purpose of /etc/hosts File in Linux
The /etc/hosts file is an integral part of the Linux system. But what is it used for?
ยท Sagar Sharma
Show Process Tree in Linux
Here are multiple commands that you can use to show the process tree in the Linux command line.
ยท Sagar Sharma
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