Latest Tutorials

Ansible Lineinfile Module: Manage Lines in Text Files
Learn to use the lineinfile module of Ansible with these real world examples.
ยท LHB Community

Git Move Commit to Another Branch
Sometimes you commit to an incorrect branch and now you want to move the commit to the correct branch. Here's how to handle the situation.
ยท Sagar Sharma

Undo Git Add and Remove Files from Staging
Accidentally add a file that was not supposed to be added? If you have not made the commit yet, you can undo the git add and remove the file from staging.
ยท Sagar Sharma

Push an Empty Commit in Git
Yes, you can totally push an empty commit in Git if you really want to. Here's how to do that.
ยท Sagar Sharma

What is the .git folder?
See the .git folder in your project directory and wonder what it is about. Let me explain all about it.
ยท Sagar Sharma

Understanding Out of Memory Killer (OOM Killer) in Linux
Learn about Linux kernel's out of memory management handling mechanism.
ยท Abhishek Prakash

firewalld-cmd Command Examples
The firewall-cmd command line tool lets you interact and manage the firewalld firewall in Linux. Here's how to use this command.
ยท LHB Community

umount Command in Linux
Learn some practical examples of using umount command to unmount the mounted disk partitions in Linux command line.
ยท Sagar Sharma

pkill command in Linux
Learn various ways of using the pkill command to terminate a process by its name.
ยท Sagar Sharma

Ansible Apt Module: Manage Ubuntu and Debian Packages
Ansible's built-in APT module lets you manage packages on Ubuntu and Debian based nodes.
ยท Umair Khurshid

How to Handle Long Running Tasks in Ansible
Facing timeouts? Here is how you can handle tasks that take a long time to complete in Ansible.
ยท LHB Community

Calculate Factorial of a Number
Here are a few sample example bash scripts to display the Fibonacci sequence based on a given input.
ยท Abhishek Prakash

Display Fibonacci Series
Here are a few sample example bash scripts to display the Fibonacci sequence based on a given input.
ยท Abhishek Prakash

Deleting Lines in Nano
Here's all you need to know about deleting single, multiple or all lines in Nano editor.
ยท Abhishek Prakash

Search and Replace in Nano
Like any other editor, Nano provides the search and replace feature. Here's how to use it.
ยท Abhishek Prakash

How I Use ddrescue Command to Recover Data from Failing Hard Disk in Linux
The ddrescue utility is a Linux command-line tool for recovering data from (almost) broken hard drives. Here's how I use it.
ยท LHB Community

Cut, Copy and Paste in Nano
While Nano is more beginner-friendly than Vim and Emacs, you still need to know the keyboard shortcuts for even the basic operations such as cut, copy and paste in Nano.
ยท Abhishek Prakash

Undo and Redo in Nano Editor
To err is human. To correct them is a smart human.
ยท Abhishek Prakash

Moving Around in Nano Editor
Moving around in Nano cannot be simpler. Just use the arrow keys or the mouse wheel, whichever you prefer.
ยท Abhishek Prakash

Save and Exit Files in Nano
New to Linux and Nano and don't know how to save or exit the editor? Here's what you need to know.
ยท Abhishek Prakash

Open a File for Editing in Nano
In the first chapter of the Nano series, learn to open existing or new files with Nano editor.
ยท Abhishek Prakash

Ansible Dry Run: Running Playbook in Check Mode
Not sure of things with your playbook? Here's how you can test your Ansible playbook by using the dry run feature.
ยท LHB Community

Ansible Shell Module: Execute Shell Commands on Target Systems
Shell module in Ansible is a powerful tool for executing shell commands on remote hosts, but it comes with maintenance risks.
ยท LHB Community