How do you remove a directory?
Directories can be removed using the rmdir command for empty directories. For instance, rmdir directory_name will remove the named directory, provided it's empty. However, if you need to remove a directory and its contents, the rm command with the -r (recursive) option, like rm -r directory_name, becomes useful. Caution is advised, as this operation is irreversible and can quickly delete large amounts of data.
Is This Answer Correct ? | 0 Yes | 0 No |
Which command is used to create a directory?
What happens when we execute a unix command?
How do you move or rename a file or directory?
What is use of sed command?
12 Answers BitWise, Infosys, Reliance,
What is the command to check ports active in UNIX?
Explain command to show the space allocation of files?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is s and g in sed command?
Which command is used to kill the last background job?
Explain command to view process running?
What command is used to switching between users in unix?
How to find and replace the below command?