1
vote
0answers
56 views

Permanently delete using delete key - Linux

How can I set the Delete key to do the same thing as Shift + Delete: permanently delete files, rather than sending them to the trash can? I'm using Linux Mint 14, a Debian distro, with the Cinnamon ...
0
votes
1answer
44 views

RSync move files to a different directory if they were deleted on the server

So right now I use rsync to synchronize files with a server. Sometimes the files on the server are deleted (I know about the --delete option and I do not use it) and those files are left in my local ...
1
vote
3answers
137 views

Linux, How to delete a folder with more than 1 million files?

I'm working on a website for a client, and I just see a folder containing more than 1 million cache files. I need to delete him, but i can't, i have this message : Argument list too long I started ...
0
votes
4answers
1k 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 ...
1
vote
2answers
134 views

How to delete a file containing dots and backslashes in Fedora 17

I'm using Fedora 17 and I generated a folder named .\data\ from code How can I delete this file from the command line?
1
vote
2answers
167 views

how to delete **this** file

this one is odd: I have two partitions on my computer, one for linux (ubuntu 12.latest) and one for window 7. I use grub to choose the system to boot. I made a Screenshot in Linux and saved it on the ...
3
votes
1answer
1k views

Deleting files doesn't free space

I've got a disk formatted as ext3, which was filled completely. I'm attempting to free up some space on it by deleting files, but it's not working. I can rm the files, and they don't show up in the ...
-3
votes
1answer
77 views

How can I delete files that have a size of 0 in bash? [duplicate]

Possible Duplicate: Bash Find Files with zero size and delete files with different extensions How can I delete files that have a size of 0 in bash?
2
votes
1answer
1k views

Delete all files inside a directory over FTP with BASH

I try to delete all files from a directory on a remote FTP server with BASH. I was only able to delete the files and the folder, but not just clearing a folder out.. :/
0
votes
1answer
111 views

Identify files that would be deleted when removing an rsync --link-dest directory?

I have a Time Machine-style backup system set up on my NAS (running BusyBox v1.16.1), using rsync --link-dest as described here: http://blog.interlinked.org/tutorials/rsync_time_machine.html Is there ...
0
votes
1answer
65 views

already opened files in a directory can still be saved after the directory is deleted - Linux

This is annoying feature of Linux. If I opened a file in a directory and then delete the directory, and copy another directory having the same name to the same place, I can still edit and save the ...
2
votes
2answers
3k views

Root Can't Delete Folder It Owns

Platform: CentOS 6.2 Shell: tcsh .............................................................................................................. EDIT 2 Brian Swift has pointed out a workable solution. ...
-1
votes
1answer
398 views

Will deleting partitions affect my hard drive in any way?

I installed a Suse partition of around 200 Gigabytes on my hard drive, primarily running Windows 7. I am sick of Suse's crap, and just want to get rid of the OS and get that partition back for ...
2
votes
1answer
608 views

How to delete visible Desktop.ini, Thumbs.db and album art from My Music

How do I delete album art, desktop.ini, and thumbs.db from my music folder in Windows 7? I can see all of these files because I took the hard drive from my old computer and put it in my new one. It ...
1
vote
2answers
230 views

Script to keep specific directories that contains a .txt file and deletes the files from the other directories without the specific .txt file

I am almost done with the script but this outputs directories. What I would like is to have an output of files. Anyway one of you guys wanna help me out? :) #!bin/bash ( find /testftp/* -type d ; ...
0
votes
2answers
585 views

How can I use the find command to remove directories without eliminating certain subdirectories?

I am trying to modify the following command in a script that removes directories based on age. Example directories would be the following: /a/b/c/2011/11/11 /a/b/c/2011/11/11/12-ACD-1234 ...
1
vote
4answers
3k views

Operation not permitted error when deleting as root

I got into a weird situation. I got a 1Tb portable HD filled with some contents. It was used in Windows and as always packed with virus. I tried deleting some folders as root. But the following error ...
2
votes
1answer
761 views

How do I temporary delete files with the command line?

I've tried to alias rm with rm='mv $1 /tmp/' to no avail. How can I temporary delete files with the command line? I want to replace the rm command with the mv command to not delete my files and ...
0
votes
2answers
289 views

How can I remove a directory with rm - rf?

I try to remove a folder with rm -rf foldername … but it says rm: cannot remove folder :is a directory. What's wrong?
1
vote
2answers
648 views

Deleting Linux partition

I am currently running a dual boot machine with Ubuntu 11.04 and Windows Vista. Is there any way I can delete the Linux partition and Grub boot loader without affecting the Windows partition at all? ...
23
votes
4answers
3k 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 ...
5
votes
1answer
1k 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?
2
votes
2answers
1k views

What are the techniques for securely erasing data in Linux? [duplicate]

Possible Duplicate: How to wipe free disk space in Linux? This question is inspired by What is the best tool for file-shredding on a memory card?, in which brice recommended the simple ...
2
votes
3answers
338 views

In GNU/Linux, how to restrict deletion of files and directories owned by a user to a super user only?

In GNU/Linux, how can directories be set such that the owner can only add/read files/directories to/from them but only a super user can do any deletion in that structure? Consider this scenario: You ...
0
votes
3answers
498 views

Delete File with SSH Access on Linux

I have a VPS. I want to delete some specific folder inside. /var/BACKUP 01 I want to delete all files in BACKUP 01 How can I do it with SSH access? I'm using linux,please type a command here.
1
vote
2answers
327 views

Force delete a directory

I have a FAT32 SD card with a file on it, that, viewed in Windows the filename consists of a long string of nonsense. Viewed in my Android phone's Linux terminal, ls -a shows nothing in the ...
6
votes
2answers
1k 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 ...
1
vote
1answer
277 views

Extract executable/script from memory in (Ubuntu) Linux

Okay, on Linux, when I delete a running executable or script, it usually (for me, pretty much always, but I don't know if it will work in every case) continues to run without any problems. So I've got ...
0
votes
1answer
155 views

deleted files recovery

I was working on my Ubuntu lab machine and unconsciously deleted the project files I was working on. I have been working on the project since last 10 days now. Is there a way to restore the files? I ...
4
votes
3answers
6k views

Bash script to keep last x number of 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 ...
5
votes
3answers
1k views

Recover open but deleted file on Linux using ln instead of cp

Say 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 ...
6
votes
3answers
2k 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?
2
votes
3answers
340 views

How to use “rm” to remove files with a “:” in them?

I am using Ubuntu 10.04, and I have a directory with a bunch of files. We changed the naming scheme of the files a while ago, and now I want to delete all the old ones. New Name scheme: ...
1
vote
1answer
743 views

How do I remove someone else's subdirectory from under my directory?

I was sharing files with a coworker on a Linux server, and he added some new files. Now we've moved the files somewhere else, so I'd like to remove the old files. However, when my coworker added his ...
3
votes
2answers
461 views

Delete Directories smaller than x

How can I delete Directories which are smaller than, say, 1000 KB? I already have a file list from the command: du -sk * | sort -n > sort.txt but I don't know how to proceed. ++++++++ ...
0
votes
0answers
138 views

How do you delete an iFolder from iFolder admin interface

There are only two buttons at the bottom of the screen "enable" and "disable". When I check the box next to an iFolder one of them is lit (depending on what the state of the folder is)... but there is ...
5
votes
4answers
582 views

Deleting all folders and files underneath it in linux with a certain name?

I have the following structure: /.svn /bla/.svn /hello/.svn /bla/bla/bla/.svn ... etc I want to delete all the .svn folders. How do I do it? It's NOT: rm -rf .svn In windows you use the /s ...
0
votes
3answers
367 views

How to get rid of superuser`s password?

My father put a new superuser password on my laptop, and now i cant access my computer without him putting the password in. I am really helpless. How can i get rid of his superuser control? Can i ...
1
vote
2answers
200 views

where are deleted files kept?

Ubuntu 9.10 I recently deleted some files. I would like to know are the files kept in a directory? Like in windows recycle bin. I would like to know where these files are?
2
votes
1answer
983 views

delete key on linux does not work

My delete key does not work in ubuntu, it does nothing. I understand that this is a common problem, but I could not solve it with the information I found elsewhere. I ran xev. Pressing the 'a' key ...
2
votes
2answers
200 views

Deleting large no of files on linux eats up CPU

I generate more than 50GB of cache files on my RHEL server (and typical file size is 200kb so no of files is huge). When I try to delete these files it takes 8-10 hours. However, the bigger issue is ...
1
vote
4answers
477 views

In linux, what would happen to a running program when it's executable file has been modified, or deleted

Let's say /usr/local/bin/ruby is running in the background, and then we overwrite ruby with a different version, or even delete ruby. What will happen to those running ruby processes?
2
votes
2answers
3k views

How do I delete files greater than a certain date on linux

Occasionally I extract an an archive into the wrong folder and would like to move or delete the newly extracted files. What is the easiest way to do this via the command line? Can I somehow search ...
8
votes
4answers
2k views

How to set a Linux Ditribution to self-destruct (to wipe everything from the system partition) via a script

I know this is a rather strange question, but I actually need to implement something like this for work. I shall be helping to facilitate a course that uses licensed software. The software is somewhat ...
1
vote
1answer
824 views

Why can't I delete a file marked as a socket from my linux ext3 filesystem?

I'm running Ubuntu 9.04 with a ext3 filesystem. A while ago I was hacking on the flock 2.0 source and I have just tried to delete the source directory, but a single file could not be deleted when ...