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
10
Answer:
b) rm-r
.
.
.
.
.
.
.
Stay safe
Answered by
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
Chemistry,
5 months ago
Science,
5 months ago
Science,
11 months ago
India Languages,
11 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago