Linux “rm -rf” Command

Linux distributions provide the rm command in order to remove files and directories. The rm command provides a different option which rm -rf is one of the most popular of them. By default, the rm command without any option does not delete a directory with contents. But the “rm -rf” command is used to delete … Read more

Linux Reboot Command

Linux systems generally require very few reboots for reliability and availability. Generally, kernel updates or critical library updates require a reboot. Linux provides the reboot command in order to restart the system. We can use reboot , shutdown and systemctl commands in order to reboot a Linux system or server. Reboot Linux Most Linux distributions … Read more

Change Hostname In Linux

The hostname is used to identify and name a Linux system. The hostname is generally set during the operating system installation process. But the hostname is just a configuration that can be changed or set later In this tutorial we examine different ways and methods to change the hostname in Linux like Debian, Ubuntu, CentOS, … Read more

How To Use Sed To Replace String In File?

The sed command is an important command used to edit files or command outputs. The sed can be used to find and replace strings for a file easily via the command line interface. The sed name comes from the Stream Editor which provides advanced features to work with file contents. In this tutorial, we examine … Read more

Where Is cron or crontab Log?

Where Is cron or crontab Log?

The cron or crontab are a command and service used to run scheduled commands and scripts in Linux operating systems. The cron is used to set scheduled commands and execute them at specified times or intervals. This operation is error prone where we may need to check if the specified cron job is executed properly. … Read more

Remove All Containers In Docker

Remove All Containers In Docker

Containers are an easy way to run some applications in a lightweight way. A lot of containers are created in daily usage and we may need to remove these containers. In this tutorial, we examine how to remove all containers. List All Containers Before removing all containers we can list all containers by using the … Read more

How To Exclude Directories with Grep?

How To Exclude Directories with Grep?

The Linux grep command is used to search and filter files and folders for the specified search term or regex pattern. One of the powerful features of the grep command is the ability to search multiple directories recursively. Even though it is a good feature in some cases we may need to exclude some directories … Read more

How To Change Password In Linux?

How To Change Passwords In Linux?

Passwords are used to authenticate users or different entities in order to access some services, resources, or operating systems. As a secure and modern operating system, Linux provides passwords for a long time from its startup. Even though some Linux distributions provide passwordless login for a better and easy user experience it is not recommended … Read more