Computer Science, asked by ravina8376, 11 months ago

Which command is/are used to remove directory in Linux? a) rmdir b) rm -r c) only b d) Both. a and b​

Answers

Answered by Anonymous
10

Answer:

b) rm-r

.

.

.

.

.

.

.

Stay safe

Answered by kavyapsynergy
0

Both. a and b commands is/are used to remove the directory in Linux

Remove directory in Linux

rmdir command

  • In Linux to delete a directory, we can use the rmdir command. However, rmdir only allows us to delete empty directories.

rm command

  • In Linux the rm command is used to delete directories and the files within them. This will delete everything and there is no undo.

rm –r command

  • In Linux rm –r will delete only the directory which is an alternative to rmdir

Similar questions