To delete a folder that contains files, the command used is: $ rm -r folderName.
The syntax of the complete command should be as follows.
How to find and delete files in a Linux directory based on when the file had been modified from a certain amount of days ago – this can be useful for dealing with directories with copious amounts of files like email boxes and log folders. Still, on the off chance you wanted to kill those files open-source style, crack open the terminal This is the best match to OP's actual question. txt You can also use the rm command to delete multiple Linux files at one time, like this: rm file1 file2 file3 If you prefer to be careful when deleting files, use the -i option with the rm command. Just as with the cp and mv commands, Linux provides the rm for deleting files. Most of it's just consumed by the files in C:/Windows, but last I checked, I don't know enough to know which files to delete, and I've heard that you really can't do anything about the space boggling winsxs and system32.You can review the file and remove the duplicate files manually if you want to. My hard drive is constantly in danger of being full (it's bootcamp on a mac with 50 GB of partitioned space), and there's not much I've got installed in terms of software, nor do I have large media files like movies, downloads, temp files, application temp files, torrents, etc. This is a 28% discrepancy (over the smaller file size) and I have no idea where the rest of the space is going. However, by method (2), by inspecting the respective files/folders, the total consumed space adds up only to 33.1 GB. These two figures are always different, sometimes by a large margin.įor instance, my C drive now, by method (1), shows a consumed space of 42.4 GB. (2) Individual folder/file sizes: I check the individual file/folder sizes belonging to that folder viewing properties on the individual file/folder sizes, and then adding them up (with hidden and system files shown). (1) Aggregate folder size: I check the folder size viewing properties right clicking the folder
I'm trying to do a cleanup of my hard drive, and I'm constantly seeing this scenario: