General :: Easiest Way To Mass Delete Files Without Crasing Server?

Jan 18, 2010

I have like over 60 gb of tons and tons of tiny tiny files.

I used
Code:
rm -rf *
and I ended with system load of over 100+.

Any idea how do I mass remove the files without crashing the system? I have Q9550 with 8 gb ram.

View 3 Replies


ADVERTISEMENT

Fedora :: Mass Delete Abrt Records

Feb 15, 2010

I had a major foul-up a couple of days ago, and I now have thousands of bug reports in the abrt applet. I'm trying to delete them individually, but it's taking forever. Is there a way to mass delete these reports to clean things up? I looked at abrt-cli and it has a --delete command, but only does them one at a time, too.

View 2 Replies View Related

General :: Script To Mass Rename Files Recursively?

Sep 9, 2009

I need a either a script or perl script that will allow me to mass rename files, folders, and sub folders. I need to replace special chars in the current file names with underscores. I was able to make this happen in a single directory, but not recursively.

Here is what does it in a single directory.

for file in *
do
mv "$file" $(echo "$file" | sed 's/[^A-Za-z0-9_.]/_/g')
done

View 8 Replies View Related

General :: Delete All Files On A Server With A Particular Filename?

Mar 23, 2011

I run 5GBFree.com a free hosting site. As you can imagine, it gets quite a few people signing up to abuse the service.Recently I've found a LOT of people setting up sites with a particular script that floods forums and IRC chat rooms. The names of the files are as follows:

peindom1.php
peindom2.php
peindom3.php
peindom4.php

Is there a command I can run to remove files with these filenames ANYWHERE on the server (so basically, a command to go through all folders on the server and remove instances of that name

View 14 Replies View Related

General :: Whats Easiest Way To Go About Setting Up Web Server

May 21, 2010

Im trying to set up a web server on Linux and I was wondering if there may be any shortcuts available or a simple step process to get me where I need to be in regards to setting up the server.

View 6 Replies View Related

General :: What Is Easiest Smtp Server To Setup And Configure?

Feb 25, 2010

I need to setup a mail server, purely for relaying mail to a MS exchange server. A previous employee used Postfix on CentOS. I have limited Linux knowledge and no experience with any mail server software other than MS Exchange, so we cannot continue with this solution (unless I can find a way of managing it all from a gui). Does anyone know of an MTA that can be configured completely by GUI? Everyone says sendmail has millions of features and loads of documentation, but I simply do not have the time to learn it. I need something that can be configured with minimal knowledge and via GUI, not command line. The only reason I'm not using Exchange is to try to save money, and hopefully it will be more secure.

View 10 Replies View Related

Fedora :: Mass Rename Of Files?

Jul 1, 2010

I just downloaded a copy of the Old Testament onto my laptop from the Windows side of my desktop.Alas, all of the links are in lower case and all of the file names came across in upper.way to rename all of the files in a directory to be in lower case instead of upper?

View 4 Replies View Related

Ubuntu :: Easiest Way To Find Files In Folder / Directory?

Oct 10, 2010

With Windows XP, I just right clicked a folder/directory and pressed FIND then I could search for whatever file/folder name i wanted to. I could even do custom searches based on the size, modification date etc.How do you do this on Ubuntu? There doesnt seem to be a way to easily do it like this. So far i found PLACES -> SEARCH FOR FILES but that means I have to go into the directory i want. Where as I would much rather be browsing through directories and THEN want to quickly search in a particular folder. The SEARCH FOR FILES method in PLACES just wastes more time.

View 3 Replies View Related

Server :: Copy/delete Files On Remote Server?

Jul 6, 2010

Allright, I made a simple script that tarballs my SQL databases weekly and saves them to a backup harddrive.If possible, I would like to have the backups uploaded to a remote server for storage. But, I must have the script delete the previous upload for size contraints.I can only use rsync, scp or sftp. Haven't used any of them really before... Here's my basic tarball-backup script:

Code:
#/bin/sh
# Dates the new tarballs of current builds.
DATE=`date +%m_%d_%Y`

View 8 Replies View Related

Software :: How To Mass Convert Media Files To .ogg

Mar 21, 2010

I search a tool to convert my media files to ogg-files. I've managed to to do so with VLC - but only file by file. Is there a way to just convert whole folders to ogg. Even if the files contained are in a lot of different formats?

View 7 Replies View Related

Ubuntu Networking :: Easiest Way To Get Computers Connected To Share Files?

Oct 24, 2010

I now have 3 desktop computers hard wired into my wireless router and another desktop plus 2 laptops connecting wireless. All are running Ubuntu 10.4 or 10.10. I have not had the chance to get them all upgraded yet. What is the easiest way to get these computers connected so that they can share files? Do I have to set up a server or is there a simpler way? I just want to be able to copy a file from one computer to another.

View 9 Replies View Related

General :: Wget / Delete Files / Getting Bunch Of Filefolders, But No Files, Ex."cccamp07-de-1845?

Oct 11, 2010

I am trying to dl the files located here: http://good.net/dl/bd/CCCamp-2007/video/m4v/ using wget.

Now when I use the command wget -r -A .m4v http://good.net/dl/bd/CCCamp-2007/video/m4v/

I get the just a bunch of filefolders, but no files, ex."cccamp07-de-1845-Freifunk_und_Recht.m4v" but its a folder.

View 4 Replies View Related

General :: Possible To Delete All The Files Including System Files As Root?

Sep 21, 2010

If I am logged in as root in a linux system and I run command rm -rf on / folder, should it remove all the files? also the kernel?

View 4 Replies View Related

Ubuntu :: Mass Renaming Files - Get Rid Of Two Extra Characters On The End

Feb 12, 2010

I have a folder with various subfolders of files. These files all have two extra characters on the end that I want to get rid of. How would I go about telling the terminal to go into X directory and every subdirectory of X directory, look for all files with the extra characters, remove them, and keep everything else the same?

View 3 Replies View Related

CentOS 5 :: Easiest Way To Mirror Existing Server Setup On A New Server?

Jan 13, 2011

We have two CentOS 5 servers in production (web and database). We are setting up a single staging server that will mirror the configurations of these servers as closely as possible. What is the easiest way to ensure the exact same software and configs as the production servers are setup on the new staging server. Our contracted data center provider has already informed us that they do not perform images and NO we do not have physical access to the machines. It is undetermined whether we will be virtualizing the staging server into two virtual servers yet, so for the purposes of this post lets assume we are not. I'm seeking a faster/more precise method than doing this by eye and hand.

Some information on our web server code...

View 4 Replies View Related

Server :: System Files Delete By Typo - /bin/ Gone _ Recover It?

Jan 23, 2010

I had some bad luck today when I was trying to fix an account that had trouble with FTP. I decided to remove the user and add him again and reset all configuration. Anyhow, to make things short, I accidently typed rm /* -R -f and without looking hit the enter button, as soon as I realised what I wrote I hit ctrl+c. Too bad the /bin/ folder was gone by this time and standard commands like ls didn't execute anymore.

My question is if there is any way to recover these files by a system repair or something? The server is used to host a heavy loaded site which can't afford any downtime, and silly me didn't make a backup of the whole HDD, just the important folders (not the system files).

Currently I don't have the balls to restart the server as I know this will probably turn into a dissaster. I also don't have straight access to this server since it is located in a datacenter (I can go there if absolutely necessary but I rather don't).

View 4 Replies View Related

Server :: CentOS 5.3 - Easiest Way To Keep Software Updated?

Mar 17, 2010

I have somewhere between 8 and 12 servers, spread amongst different webhosts, all running CentOS 5.3. Everything on the servers has been compiled from source:
> EngineX, PHP, MySQL, Munin, etc

I compile from source because I usually run ./configure to modify the source before installing. What would be the easiest way to keep the server software updated? I am considering creating custom packages from a server which I would keep up to date manually. Then use Capistrano or Puppet to install those packages on all of my servers.

View 1 Replies View Related

Server :: RHEL Auto Delete Files With Full Hard Drive

Jul 13, 2010

I experienced a full hard drive yesterday due to a massive error_log. We took care of the errors, but later found out we were missing files, including a MySQL database table. Having a shopping cart and ecommerce stuff on the site, we found that some of those files were missing, too.Does RHEL 5 have some sort of feature for automatically deleting files when the partition is full? If it does, I want to turn it off.

View 4 Replies View Related

Ubuntu :: Rsync --delete Doesn't Delete Superflous Files

Sep 25, 2010

I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:

Quote:

rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@192.168.0.106:/mnt/back

The problem is it does not delete files that has been removed from my local system?
I run the command as root on the local system.

(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)

View 2 Replies View Related

Ubuntu Servers :: Easiest Way To Move 200 Accounts To New Server?

Feb 9, 2010

I'm in the middle of moving my lab to a new server in the middle of the school year.. and need to copy all the user accounts to the new box, hopefully with all the student's passwords and contents of their folders intact.And since we are using the system daily, I need to do it all in an hour or 2.I'm thinking I can just

1. diff /etc/passwd and /etc/shadow from the old the new
2. copy all the student folders to new /home
3. write a script to set the permissions on all the new /home folders to match the user names.

It seems easy and safe so long as I back up the 2 existing files..Any reason not to try? Or is there an easier way?

View 1 Replies View Related

Server :: Script To Delete Files Older Than X Days Fstab Has Noatime Enabled?

Jul 26, 2011

I have set up a simple find and delete script for files older than X days. The problem is that some of the files that are send in this share are transfered from an archive server and creation/modified date remains the same when copied and the age of them could be a year ago or older and they get deleted over night by the script.For performance reasons the raid is mounted with noatime in fstab.Do you see any solution to this problem except enabling atime?I'm thinking at some more advanced script that writes the list of added files once a day and marks them for deletion after some time.

View 2 Replies View Related

Server :: Log User Samba Who Delete Or Move Files/folders On Samba Server ?

Feb 8, 2010

I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.

View 1 Replies View Related

Programming :: What Are The Series Of Files That Are Called When A User Make Copy Operation From Usb Mass Storage To Hard Disk

Mar 20, 2010

what are the series of files that are called when a user make copy operation from usb mass storage to hard disk?i have reached the code of the usb mass storage in linux kernel 2.6.33 and i want the exact code the make the copy how can i do that?

View 2 Replies View Related

Ubuntu :: Can Delete These 'un-delete-able' Files In Trash?

Nov 1, 2010

I just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.

View 3 Replies View Related

General :: Delete All But 10 Newest Files?

Apr 8, 2011

I'm trying to keep a directory full of log files manageable. Nightly, I want to delete all but the 10 most recent. How can I do this in a single command?

View 2 Replies View Related

General :: Automatically Delete Log Files?

Apr 9, 2011

I have a script running as a cronjobIt outputs logs upon each run to /var/log/mylog.logIs there anyway I can delete this or compress it when it gets too large?A cheap and dirty way is to setup another cronjob to delete the log every X interval.... although I'm not sure if that's the proper way

View 3 Replies View Related

General :: Delete All My Windows Files?

Mar 8, 2011

I would boot up windows and do it but window will no longer open my system crashed and was only able to recover linux. i open up system info and 31 gig of memory are used up on windows. i try to delete them but the option doest pop up and the delete key will not work. how can i remove all the windows files without deleting any of my linux stuff? if its possible.

View 15 Replies View Related

General :: Delete A File Or Certain Files Using Php?

Apr 28, 2011

i wanna ask on how to delete a file or a certain file in linux by using php or in other word by using web browser. example i want to delete the file inside /var/www/cgi-bin/ with browser.

View 14 Replies View Related

General :: Delete Files In A Directory - RM?

Jun 17, 2010

I have a USB drive that I boot using SysLinux. I think select one of several options to complete a task. I do not have access to edit those Kernels. I need to add a option from the Syslinux menu where I can delete all the files from a specific directory.

View 3 Replies View Related

General :: Delete Files Which Have No Extensions?

May 30, 2010

how to delete only files which have no extensions in the directories. but other files should exist.

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved