answersLogoWhite

0


Best Answer

You can remove a folder recursively with the command: rm -r dirname

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you remove a directory with substructures in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you remove a full directory in Linux?

To remove a directory that is full with other files or directories, use the below command. rm -rf directory


What is the main file directory in Linux?

It is the Home Directory.


Where is the Linux root directory located?

The root directory is usually /.


What is the command is used to remove directory in Linux?

Assuming the directory is in your Home directory use: rmdir directory-name This will fail if there are files within the directory. In this case, use rm -r directory-name.


How are directory paths indicated in Linux?

The root directory is /. The home directory is /home/user.


How do you move files to a directory in Linux?

mv file /path/to/directory


What is the Linux Filesystem hierarchy used for?

The Linux Filesystem Hierarchy is used to help determine the file structure in the Linux Operating System. It defines the Directory structure and directory contents.


What are several sets of commands you can use to remove the directory and its contents in linux?

# rm -rf Target-folder Will remove the folder Target-folder and all it's contents .


What is the name of the Linux top level directory of the file system?

The /, or root directory.


What Linux commands make your home directory the working directory?

the command 'cd ~' will get you there .


How do you change path in Linux?

You change the current working path directory in Linux by issuing the cd command, followed by the directory you want to change to. For example:cd /dev/inputwould take me to the that directory.


What is the symbol used to indicate you are in the root directory in Linux?

"/" is the root directory in Linux. Make sure not to confuse this with the "/root" directory, which is the home directory for the user "root" (similar to "Administrator" on Windows)