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 are awk commands?
What is the behavioural difference between cmp and diff commands?
Who command in unix operating system?
What are bash commands?
What is the use of the tee command?
What does awk stand for?
How do you grep recursively?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the difference between cat command and more command?
Is it inbetween or in between?
What will the following command do?
What is grep r?
Who command in unix?
Which unix command lists files/folders in alphabetical order?
What does the command ' $who | sort –logfile > newfile' do?