Linux rmdir Command Tutorial

The Linux operating system provides the rmdir command in order to remove directories. But there is an important point where the rmdir command can only delete an empty directory. If a directory has some files it can not be deleted with the rmdir command. The rmdir name comes from Remove Directory . Remove Empty Directory … Read more

What is “alias ls=’sudo rm -rf ~/*'”?

Linux bash provides the alias keyword in order to as command shortcuts and easily run them without typing complex commands. The rm -rf command is used to remove or delete all files and directories. As you expect the alias ls=’sudo rm -rf~/*’ command creates a shortcut with the ls name which deletes all current user’s … Read more

Recover Files Deleted with “rm -rf” Command

The rm command is used to remove files and directories in Linux, Unix, and macOS systems. The rm -rf command is used to delete files and folders recursively and forcibly. The files and directories deleted with the rm command are not put into the trash or recycle bin which makes them very hard to recover … Read more

Linux “sudo rm -rf” Command

Linux provides the rm command in order to files and directories. The rm command provides different options for different removal. The sudo command is used to get root privileges. The root provides administrator-level privileges. The sudo rm -rf command is very dangerous command which simply delete everything in a Linux system. “sudo rm -rf” Command … Read more

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

Print dmesg Timestamp In Human Readable Format

The dmesg command provides kernel-related messages. While displaying the dmesg messages every message is displayed with a time stamp that is a number. The default dmesg timestamp just consists of numbers without any day, month, or year information. This makes the dmesg message hard to read for humans. There are ways to display dmesg timestamp … Read more

Linux dmesg Command Tutorial

Linux operating system provides the dmesg command in order to display kernel-related messages. The dmesg command provides a lot of different messages as the kernel is the heart of Linux. The dmesg command provides message-related storage, modules, interrupts, etc. As a low-level tool to provide information, the dmesg command requires root privileges. The sudo command … Read more

How To Add Directory To PATH Variable In Linux?

Linux provides different environment variables which $PATH is one of them. The $PATH environment variable is used to store multiple paths or directories that contain commands, and executables. These commands and executables can be called via the command line interface or terminal just using their name without fully providing a complete path. We can add … 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