0 votes
in Linux by
How would you delete a directory in Linux?

1 Answer

0 votes
by

How would you delete a directory in Linux?

There are two commands that can be used to delete a directory in Linux.

rmdir

$ rmdir <directory name>

rm -rf 

$ rm -rf <directory name>

Note: The command rm -rf should be used carefully because it will delete all the data without any warnings. 

Related questions

0 votes
asked Nov 11, 2020 in Linux by sharadyadav1986
+1 vote
asked May 9, 2021 in Linux by sharadyadav1986
...