Skip to main content
Abhishek Prakash

Abhishek Prakash

447 posts published

Creator of Linux Handbook and It's FOSS. An ardent Linux user who has new-found love for self-hosting, homelabs and local AI.

echo command in Linux
Commands

echo Command in Linux: 7 Practical Examples

Learn to use the echo command in Linux with these simple but useful examples. The echo command is useful for displaying information in bash shell scripts.

· Abhishek Prakash

file command in Linux
File Properties Commands

file Command Examples

Here are various examples of the file command in Linux to determine the actual type of file and gather related information.

· Abhishek Prakash

Linux command line
Tips

How to Empty a Log File in Linux

In this tutorial, you'll learn various ways to truncate a log file and delete its content without deleting the file itself.

· Abhishek Prakash

which Command Examples
File Searching Commands

which Command Examples

Linux which command is an extremely useful command for locating executable files located anywhere in the Linux system. Learn how to use it.

· Abhishek Prakash

Count number of files in Linux
Tips

Count Number of Files in a Directory in Linux

Here are several ways to count the number of files in a directory in Linux command line.

· Abhishek Prakash

Bash shell
Bash Tips

How to Split String in Bash Script

In this quick tip, you'll learn to split a string into an array in Bash script.

· Abhishek Prakash

Linux Handbook
Tips

Running Linux Commands in Background and Foreground

Learn how to run commands in background in Linux. You'll also learn how to bring the background jobs back to foreground.

· Abhishek Prakash

How to Copy a Directory in Linux Command Line [Beginner's Tip]

How to Copy a Directory in Linux Command Line [Beginner's Tip]

This quick tip for beginners demonstrates how to copy a directory in Linux using the cp command. You'll also learn a few additional tips around copying directory.

· Abhishek Prakash

du command in Linux
File Properties Commands

du Command Examples

The du command in Linux is used for checking the size of directory. Here are various ways you can find the size of directory in Linux with the du command.

· Abhishek Prakash

How to Find Which Shell You Are Using on Linux
Tips

How to Find Which Shell You Are Using on Linux

Here are four simple commands to find out which shell are you using in Linux.

· Abhishek Prakash

Python
Python

3 Ways to Write a List to a File in Python

This quick tutorial demonstrates three methods to write a list to a file in Python scripting language.

· Abhishek Prakash

How to gzip a Directory in Linux
Tips

How to gzip a Directory in Linux

Trying to gzip a directory and seeing an error in Linux? Here's the command (with explanation) to gzip compress a folder in Linux terminal.

· Abhishek Prakash

Rename multiple files in Linux command line
Tips

How to Rename Multiple Files at Once in Linux

Rename command can be used to rename multiple files in Linux at once. Here are some practical scenarios in which you can use the rename command.

· Abhishek Prakash

Create text file in Linux terminal
Tips

4 Ways to Create a Text File in Linux Terminal

In this Linux beginner series, you'll learn various methods to create a file in Linux terminal.

· Abhishek Prakash

Get website's IP address in Linux
Tips

How to Find the IP Address of a Website in Linux

Wondering how to get the IP address of a website in Linux? Here are 3 command line utilities to query the DNS and get you the IP address and other details.

· Abhishek Prakash

Networking commands in Linux
Tips

How to Find Default Gateway IP in Linux

This quick Linux tip shows various methods to find gateway IP address of your router in Linux command line.

· Abhishek Prakash

Find ip address in Linux
Tips

How to Find IP Address in Linux Command Line

How do I find out the IP address of in Linux ? It's a common question for a number of Linux users. Here are multiple ways to get the IP of host system in Linux.

· Abhishek Prakash

Fail2ban setup guide
Guides

Secure Your Linux Server With Fail2Ban [Beginner's Guide]

This detailed guide teaches you what is Fail2Ban, how to configure it and how to use it for providing an additional layer of security on your Linux system.

· Abhishek Prakash

Fixing 'sudo: unable to resolve host' Error in Linux
Troubleshooting

Fixing 'sudo: unable to resolve host' Error in Linux

This quick tutorial will show you how to fix 'sudo: unable to resolve host hostname' error in Ubuntu or any other Linux distribution.

· Abhishek Prakash

bash
Bash Tips

How to Compare Strings in Bash Shell Scripting

In this tutorial you'll learn how to compare strings in bash shell scripts.You'll also learn to check if a string is empty or null.

· Abhishek Prakash

How to Update Kali Linux With One Single Command
Tips

How to Update Kali Linux With One Single Command

Learn to update a Kali Linux system in one single command. Yes, it's that easy and straight forward.

· Abhishek Prakash

Change the shell in Linux
Tips

How to Change Shell in Linux

This quick tutorial shows how to check the running shell, available shell in the system and how to change the default shell in Linux.

· Abhishek Prakash

How to Check Linux Login History
Tips

How to Check Linux Login History

You may want to know who logged on your system and from where. You should also see bad login attempts on your system. Learn how to see login history in Linux.

· Abhishek Prakash

5 Examples of Cal Command in Linux
Commands

5 Examples of Cal Command in Linux

This quick tutorial shows you how to display calendar in Linux with cal command and some common examples of this command.

· Abhishek Prakash

View files in Linux
Tips

5 Commands to View the Content of a File in Linux Command Line

Here are five commands that let you view the content of a file in Linux terminal.

· Abhishek Prakash

How to Fix Tab Completion Not Working in Ubuntu & Debian
Troubleshooting

How to Fix Tab Completion Not Working in Ubuntu & Debian

Tab completion not working for you in the terminal? Here's the easy way to fix it in Ubuntu/Debian based distributions.

· Abhishek Prakash

nicehash
Tutorial

Want to Use NiceHash Miner on Linux? Here's How to do That

NiceHash is not available on Linux officially but you can still use other applications to connect to NiceHash marketplace using its excavator. Here's how to do that.

· Abhishek Prakash

Convert tabs into spaces
File Manipulation Commands

expand Command Examples

This tutorial teaches you to convert the tabs into spaces in Linux command line from the programming perspective.

· Abhishek Prakash

lsof command in Linux
Commands

7 Examples of lsof command in Linux

This article teaches you how to list opened files by a user or a process by using the lsof command in Linux. 

· Abhishek Prakash

Ping command in Linux
Host Information Commands

ping Command Examples

Here are some of the most common usages of ping command in Linux along with their explanation.

· Abhishek Prakash