Sunday, 28 February 2021

LINUX - HOW TO DELETE A DIRECTORY IN LINUX

LINUX - HOW TO DELETE A DIRECTORY IN LINUX
 
The command to delete a directory in Linux
 Command :- rm -rf testdir

We have a directory named testdir

 

Now we will remove the directory by using the command - rm -rf testdir

 

We have used to switch -rf to recursive and force to delete the testdir. Using the -rf will forcefully delete the directory, even if the directory is not empty. 

No comments:

Post a Comment