Answer Posted / hr@tgksolutions.com
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 |
Post New Answer View All Answers
What does sed command do in unix?
Enlist some filename manipulation commands in unix.
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
How does shebang work?
What is the use of awk command in unix?
What is the difference between grep and grep?
What is the use of tee command?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Which command is used to kill the last background job?
What does awk stand for?
Describe the usage and functionality of the command rm –r * in unix?
What is ‘ps’ command for?
Which command is used to restrict incoming messages?
How do I run a bash script?
What is the use of find command in unix?