Deprecated tag, don't use.

learn more… | top users | synonyms (2)

186
votes
8answers
12k views

How far will you get with an 'rm -rf /' command?

I've often wondered how far the system will actually get if you run rm -rf /. I doubt the OS would be able to erase itself (?) Bonus Question: After the command has been executed, will rm have ...
83
votes
15answers
78k views

How to delete directories with path/names too long for normal delete

Windows seems to have a length limit on file names when trying to delete, though it won't prevent those files from being created. Our build process creates a number of temporary files (many build off ...
81
votes
8answers
151k views

Can I delete the folder “C:\WINDOWS\Installer\$PatchCache$”?

This folder is taking up nearly a GB of my C partition. Is it possible to just delete it?
64
votes
12answers
6k views

What command do I need to use to remove a file called `-rf`?

I did something crazy at some point that created a file called -rf on my filesystem. Now I can't figure out how to delete it... I've tried: rm "-rf" rm \-rf These just exit immediately, arrgh! ...
45
votes
5answers
169k views

How do I get permissions to delete files on Windows 7?

I updated my laptop's OS from Windows XP to Windows 7. There are some leftover files from Windows XP on the computer now. If I try deleting them I get the following error: You need permission to ...
38
votes
1answer
36k views

How to use Terminal to delete all .svn folders recursively?

what command can I type into Terminal so that I can: delete all .svn folders within a folder (and from all subdirectories) but not delete anything else ?
37
votes
6answers
65k views

Recursively delete empty directories in Windows

I have a directory on my Windows 7 machine that has hundreds if not thousands of sub-directories. Some of them have files, some do not. I want to delete all the empty directories. Looking at the ...
35
votes
15answers
48k views

How do I delete a folder which is nested quite deep and avoid “File name too long”?

Eclipse created a temp folder in one of the directories which is nested quite deep, e.g. dir1\dir1\dir1\dir1\... I am unable to delete this folder in Windows via Explorer, the del or rmdir ...
33
votes
15answers
31k views

Permanently delete files from a flash drive

I heard some people mention that files are deleted from flash drive for good, there is no tracing back. Is that really true? If not, how do I permanently delete files from it? I have a sensitive ...
28
votes
6answers
17k views

How to quickly empty a very full recycle bin?

I have deleted about half a million files from a folder, and didn't think to press Shift in order to delete them completely straight away. Now they're clogging my recycle bin, and Windows claims it ...
27
votes
2answers
3k views

What happens when I delete the entire Windows registry?

I've been wondering what would happen if I delete all the registry stuff. Would my PC stop working? Edit: I've edited the code, now it should delete the registry. cd %TMP% reg query HKCR> ...
25
votes
4answers
10k views

How to lock a file against deletion but still make it writeable?

I want to make a file locked against deletion but still be writeable. How do I do this? The file in question is a Truecrypt volume as a file on a NAS SMB Network share, so I don't want to ...
23
votes
11answers
138k views

How to delete files and folders that cannot be deleted?

I have a backup copy of a previous Windows' Documents and Settings folder which only contains my original user and within 2 more directories: Favorites and Local Settings. When I try to delete Local ...
22
votes
2answers
595 views

DEL *1.* deletes all files in folder

I'm trying to delete all files that end with the number one, but for some reason it is deleting all of the files in the folder. The command I'm using is DEL *1.* It works when I use a letter like ...
20
votes
4answers
15k views

Quickest way to merge snapshots in VirtualBox?

I have vdi with quite a number of snapshots taken from it - say, 50 or 70 snapshots. I want to have one plain vdi with a current state. These snapshots take way too much disk space and are not needed ...
17
votes
3answers
18k views

How do I delete the Chrome App Launcher?

I'm running OSX 10.8.5 and I can't figure out how to get rid of the Chrome App Launcher. In launchpad when I long click on it and things begin to wiggle there's no X for me to click to delete it. ...
16
votes
2answers
19k views

.dropbox files, can they be deleted?

I use Dropbox on my Windows 7, OS X and on my mobile phone. Sometimes I see a file called .dropbox in my dropbox folders, can those files be deleted?
15
votes
7answers
15k views

Put files deleted over the network into a Windows trash can?

From a Windows workstation when I delete files over the network (e.g. a file share, server disk, etc) those files are never put into a trash can, either on my Windows workstation or on the server - ...
15
votes
3answers
9k views

How to delete an invincible 0 byte file?

I have a file whose size is 0 bytes. When I try to remove it an error message appears, saying "Could not find file". Here is the list of things I've tried to delete the file: Rebooted Reset folder ...
13
votes
3answers
9k views

Automatically deleting old files from recycling bin while keeping the new ones?

I want an explorer add-on which will delete old files from recycling bin after a time period. For example, I want to set the time limit to 30 days. When I delete a file in Windows, the software will ...
12
votes
3answers
13k views

How to secure delete file or folder in windows? [closed]

How do I securely delete (i.e., permanently delete) a file and/or folder in Windows? Secure in terms that the deleted file/folder can not be restored. Can you recommend any free or open source tool? ...
11
votes
6answers
12k views

How to delete all but one file in Unix? [duplicate]

Possible Duplicate: How to delete all files in a directory except some? How to delete all but one(or some) file in Unix? Something like rm -rf -ignore myfile.txt *
11
votes
7answers
50k views

How can I delete all files/subfolders in a given folder via the command prompt?

I would like to delete all files and subfolders in a batch file in Windows 7 and keep the top folder. Basically emptying the folder. What's the command line instruction for that?
11
votes
5answers
9k views

How do I trim my Time Machine backups and find and exclude frequently-updated large files from bloating it?

Time Machine is nice because it Just Works and it does its magic in the background. But left to itself, it can really swell up due to either large files that you don't really need backed up slipping ...
11
votes
2answers
9k views

do files in the temporary folders get automatically deleted?

We are thinking to make our web application hosted on a windows server 2003 machine create temporary files, and "leave" it there as such. We won't manually take any action on them. So will these files ...
10
votes
7answers
15k views

Can't delete folder in Windows 7

I'm trying to delete a folder in Windows 7 and get a perplexing error message: "Could not find this item: This is no longer located in G:\Graphics. Verify the item's location and try again. I can ...
10
votes
5answers
8k views

How to delete (invalid) files with colon in their name under Windows?

I've got a rather large number of files on my Windows drive that have a colon in their name. (These came from unpacking some Unix archives.) When I try to delete them, Windows (XP) complains that ...
10
votes
3answers
25k views

How to find which files and folders were deleted recently in Linux?

I am having one particular folder (/home/sam/officedocuments) which is having hundreds of folders and files. I think I deleted some files and folders by mistake but I'm not sure. How to find which ...
10
votes
1answer
305 views

Why is deletion speed in Windows periodic often?

Just out of interest, what is the reason for deletion times to be periodic often? In Windows 8, the deletion dialogue window shows deletion speed in a diagram. If there is no reason, of course that ...
9
votes
6answers
33k views

Delete URL history in Google Chrome

I'm looking for a way to delete a whole URL in Google Chrome. Do I need to run some other program or can it be done in the browser itself?
9
votes
5answers
19k views

How do I delete Windows.old in Windows 7?

I used to run Windows 7 32 bit, but installed the 64 bit version because of a RAM upgrade. During the installation I got this message: The partition you selected might contain files from a ...
9
votes
4answers
4k views

How to delete a file ending in a dot in Windows 7?

After installing Cygwin on Windows 7 and realizing I'm better of with using Linux on a different partition, I wanted to uninstall it. However, Cygwin has no uninstaller so I was left with the option ...
8
votes
2answers
244 views

Why is the file deleted not actually deleted from the hard drive?

From an article on file recovery I read, that when a file is deleted on your computer, only a pointer to the file is deleted and the space occupied by the file is marked as free to use. Is the only ...
8
votes
3answers
8k views

How to delete file with this name on linux: -]???????q

Somehow a file named -]???????q got created on my terminal. I tried rm -f "-]???????q" (in double quotes), but it did not get deleted. (Error:: rm: invalid option -- ]). How do I delete it?
8
votes
3answers
2k views

Why can I rename a running executable, but not delete it?

Everything is in the title, but more officially : Why does Windows let me rename a running executable, but not delete it?
8
votes
4answers
3k views

How to recover open but deleted file on Linux using ln instead of cp?

I have a file that's downloading (from a source that's hard to re-download from), but accidentally deleted from the filesystem namespace (/tmp/blah), and I'd like to recover this file. Normally I ...
8
votes
5answers
330 views

Media Sanitation

What is considered the minimum amount of overwrites to sanitize media? For example; there are 1, 2, 3, 7, and 35 overwrites methods to make data irrecoverable. Using standard recovery methods (such ...
7
votes
3answers
3k views

How to Recursively Remove .svn Directories?

How do I recursively delete all .svn directories, starting with the directory I am in?
7
votes
6answers
15k views

What's wrong with my bash script to keep last x files and delete the rest?

I have this bash script which nicely backs up my database on a cron schedule: #!/bin/sh PT_MYSQLDUMPPATH=/usr/bin PT_HOMEPATH=/home/philosop PT_TOOLPATH=$PT_HOMEPATH/philosophy-tools ...
7
votes
4answers
4k views

Why does this file apparently not exist when attempting to delete it?

A month or so back, I untarred the Linux source in a folder in Cygwin (I was curious as to whether or not it would compile with MinGW 'cause my other computer running Linux is a slow single core ...
7
votes
5answers
10k views

How to delete a file that contains spaces in the file name?

I have a file with this name "Registering wrong app ", there are a few spaces in the file name, now I can't delete it, it won't even let me change file name, I also tried to delete it from my Java ...
7
votes
3answers
6k views

What's the equivalent to 'rm -rf' with Windows command?

I need to delete a whole directory (with a lot of sub directories and files) by running a command in a batch file. I tried delete and erase, but both of them requires me to answer 'Y/N', and it ...
7
votes
2answers
3k views

Delete multiple files on PowerShell command line

With PowerShell, what is the most concise way to delete multiple explicitly named files? E.g. on *ix it would be: rm subDir/a.png anotherDir/b.jpg thirdDir/c.gif I'm currently using: echo ...
7
votes
4answers
4k views

How to recover deleted file if it is still opened by some process?

$ cat important_file > /dev/null & [1] 9711 $ rm important_file $ killall -STOP cat [1]+ Stopped cat important_file > /tmp/p $ ls -l /proc/`pidof cat`/fd/ total 0 ...
7
votes
3answers
8k views

Deleting large amount of files in Windows is slow

I have a Windows XP box with an NTFS disk and deleting large amounts of files is extremely slow. If I select a folder that contains a large number of files in a tree of folders and delete (using ...
7
votes
2answers
9k views

How do I remove the Never-Ending Dropbox Folder?

I don't know if this is an error with eclipse or dropbox, but I seem to be unable to delete a file folder within my dropbox folder. Somehow, there was a creation of over 8300 file folders, all ...
6
votes
2answers
6k views

Cancelled cut and paste in windows 7

I cut and paste an 80Gb worth of files and folders. At about 80% I cancelled it. Are some of the files deleted and gone forever? Does the files that were successfully transferred gets deleted? If yes, ...
6
votes
3answers
8k views

rsync command deletion error “IO error encountered — skipping file deletion”

I use rsync command to take backup of files from one of my ubuntu server to another ubuntu machine. Backup server trigger a script that use rysnc command. Here is the command I use rsync -rltvh ...
6
votes
3answers
4k views

How to delete Windows NTFS hard link (mklink /h) while original is in use?

On a Windows NTFS file system, I have a file (say, orig.mp3). I open this file, through this path orig.mp3, in such a way that it is in use (say, by playing it in VLC). Then I create a hard link ...
6
votes
1answer
2k views

Two commands to move files to trash. What's the difference?

trash-cli provide a trash command, and gvfs-bin provides a gvfs-trash command that move files / directories to the trash can. Is there an important difference between these two commands?