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

Delete/Remove File In Linux

Delete/Remove File In Linux

Files can be removed or deleted by using different commands in Linux. The removal of the file deletes related file system information from the file system table. While deleting a file there are different ways like prompt deletion, display verbose output, etc. Delete/Remove File with rm Command The rm command is a defacto command to … Read more

Find Files In Linux From Command Line

Find Files In Linux From Command Line

Linux is a very flexible operating system that provides different commands and ways to find files. As a command-line-based operating system, Linux provides a very powerful command named find in order to find files according to the different aspects. In this tutorial, we will examine how to find files according to their names, sizes, locations, … Read more

Linux rm Command Tutorial

Linux rm Command Tutorial

rm command is the ultimate tool used to remove/delete files and directories in Linux distributions. The rm command is provided by all Linux distributions like Ubuntu, Debian, Mint, Kali, CentOS, RHEL, Fedora. There are alternatives to the rm command like rmdir but it provides only removal of the directories. rm Command Syntax rm command has … Read more