Linux Survival
Search
Primary Menu
Skip to content
Home
Blog
Testimonials
Linux Links
Command List
Contact
Search for:
Linux Survival
When your "cp -r" command failed due to a lack of disk space, it did not clean up after itself. That is, it did not delete the files which it managed to copy before running out of space. It would be a good idea to clean up this mess ourselves. Recall that the "rmdir" command only deletes empty directories, so we cannot use it to delete the "pools" directory in one fell swoop, since "pools" contains at least one file. The command that allows you to remove an entire directory tree is "rm -r". For example, to remove a directory called "stocks" and all of its subdirectories and files, you would type rm -r stocks Type the command to remove your incomplete "pools" directory.
Page 59
Click the right arrow.
Where learning Linux is easy
Module 1 Introduction
Directory Structure
List Directory
View File Contents
Create Directory
Move and Rename File
Change Directory
Get Current Location
Quiz 1
End of Module 1
Module 2 Introduction
Pathnames
Copy File
Remove File
Remove Directory
File Security
Change File Permissions
Wildcards
Groups Memberships
Quiz 2
End of Module 2
Module 3 Introduction
Home Directories
Manual Pages
User Information
Find File
Concatenate Files
Redirect Output
Print
Print Job Status
Cancel Print Job
Quiz 3
End of Module 3
Module 4 Introduction
Copy Tree
Disk Space
Remove Tree
Process Status
Pipe Output
Pattern Matching
Kill Process
Quiz 4
Conclusion