Delete Some Specific Files From All Subdirectories

Jan 4, 2007

Useful unix-command trick to quickly remove i.e. Thumbs.db files, WS_FTP.LOG files or *.fla files, recursively through directories.

It could be a real pain on a huge directory tree ;-)

Removing all *.fla files from /home/user/ and subdirectories...

Code:
# find /home/user/ -name *.fla -ok rm {} ;
Removing all WS_FTP.LOG files from /home/user and subdirectories...

Code:
# find /home/user -name WS_FTP.LOG -ok rm {} ;
Removing all Thumbs.db files from /home/user and subdirectories...

Code:
find /home/user -name Thumbs.db -ok rm -f {} ;

View 14 Replies


ADVERTISEMENT

How To Delete Specific Files

Oct 10, 2007

In one folder, I have thousand of files, and I want to delete 100 specific files. Saying specific files, I mean all of them has a keyword. So, I can find out all of them by using
grep "keyword" *

but dont know how to delete all of them. Not deleting one by one.

View 2 Replies View Related

Delete Files Created On A Specific Date

Jun 28, 2008

Is there a quick shell command to find (inside a directory) and delete all the files created e.g. on January 10, 2008 ?

View 2 Replies View Related

How To Easily Search And Delete Specific Files

Aug 15, 2008

to delete file1010.jpg and filetest.jpg from /public_html/Storage

problem is there are hundred thousands .jpg files stored on /public_html/Storage

How can I easily search for these 2 files and delete it?

I am using Cpanel & Ftp Program Ws ftp pro, Which one is better to use to do the job?

View 3 Replies View Related

Cant Delete Files

Jul 12, 2009

im try to delete some file from cpanel but everytime i delete nad refresh they come back
also if i try to change the perms it does not let me?

View 14 Replies View Related

How To Delete Files

Aug 13, 2008

i have installed the Domain Technologie Control Panel on Debian Etch, and have 2 folders that will not delete via FTP

I was wondering if anyone had a tutorial or could tell me how to be able to delete them....

View 14 Replies View Related

Delete Files In /var/log

Aug 3, 2007

I am currently freeing up some space on my VPS and want to know if it ok for me to delete the following files in: /var/log/

apf_log.3
apf_log.4
boot.log.3
boot.log.4
cron.3
cron.4
exim_mainlog.3.gz
exim_mainlog.4.gz
exim_paniclog
exim_paniclog.3.gz
exim_paniclog.4.gz
exim_rejectlog.3.gz
exim_rejectlog.4.gz
maillog.3
maillog.4
messages.3
messages.4
rpmpkgs.3
rpmpkgs.4
secure.3
secure.4
spooler.3
spooler.4

View 2 Replies View Related

How To Delete Backup Files

Oct 25, 2009

I have files on offsite backup from a previous server - I can login via putty ot winscp.

Putty login shows:

Quote:

FreeBSD 6.1-RELEASE-p3 (BACKUP3)

i want to delete them all - how can I do this in the most secure manner with the access I have?

View 9 Replies View Related

Safe To Delete These Files

Feb 12, 2008

I am running my VPS on direct admin panel, my disk space is going low, so i am deleting few junk / log files

Kindly let me know

1) is it safe to delete data of this directory -

/var/log/httpd/domains

The File names in above directory are such as - " domain.com.bytes "

As it is occupying 600 MB space

2) where can i delete much junk / temp files, to free up space.

View 5 Replies View Related

FTP: User Cannot Delete Files, Etc.

Aug 20, 2007

I'm having a problem with one of my users on my box. For some reason they cannot delete files or change permissions and sometimes while uploading, it says the server has reset.

I haven't had any issues myself but what could be causing this?

I am using a Linux Fedora 4.0 box with Cpanel.

View 14 Replies View Related

Which Files In /var Are Safe To Delete

May 5, 2007

I have WHM 11.1.0 cPanel 11.2.1-C11635
FEDORA 4 i686 - WHM X v3.1.0

My /var partition is over 64% full. 2 directories in there show a lot of space being used.

One of these is /var/lib/mysql
du -h --max-depth=1 #
shows user accounts on the server with their database names. Are these just logs, or are they the actual databases? (Probably dumb newbie question)

The other big one is /var/log/munin Is there anything there I can delete?

View 14 Replies View Related

Apache :: How To Delete Files

Jun 5, 2013

My server is with Centos OS. I have a cache directory which has tons of scrap files. I am unable to delete it. rm -rf dirname gives an error.Is there any way to remove this directory quickly. 

View 6 Replies View Related

Block GET Requests To Specific Files

Apr 12, 2009

I am getting a lot of GET requests from different IPs to 4 nonexistent PHP files on my server. Is there any way to block the requests to avoid the resources use of apache that these requests are generating?

I have installed mod_security but Im not sure about how the block rule should be.

The requests are going to images/log.php, images/log2.php, images/log3.php and images/logi.php of one of the sites hosted on the server, is there any way to block there requests for a specific domain or path?

View 3 Replies View Related

Cron To Delete Files Every 24 Hours

Jun 15, 2008

I want to setup a crontab to delete a file every 24 hours, I am not the best in crontab so was wondering if one of you could please give me the command I should use?

View 7 Replies View Related

Can't Delete Files From CPanel Server

May 11, 2007

I've been using CPanel for a few years now and I've encountered an error that I have no clue how to fix it. Basically the files have been with me for the last two or three years and I've changed them from server to server. I'd say these files have been through about four or five servers. The funny thing is I can't delete any of these files. The files are in a folder under public_html and I can't delete the folder or any of the files or folders inside of that folder. I've tried through FTP and through CPanel.

The FTP error I get (I'm using WS_FTP Pro) is:

# transferred 4277 bytes in 0.063 seconds, 534.625 Kbps ( 66.828 Kbps), transfer succeeded.
226-Options: -a -l
226 58

The CPanel error I get (through File Manager) is:

[a fatal error or timeout occurred while processing this directive]

and under the trash can in File Manager:

Unable to change directory to /home/mydirectory/.trash! You do not seem to have access permissions! (System Error: Permission denied)

I even CHMODed all of the files to 777. I don't know how to get rid of these old files, how do I do it? I also have root to the server if that helps.

View 3 Replies View Related

Plesk 11.x / Windows :: Restore Specific Files?

Sep 20, 2013

I'm backing up a domain in Plesk Panel 11.0.9 on Windows, it's a large backup with 50,000+ images in it so the backup gets split into multiple zips

xxxxxx__xxxxxx.com_vhost_1309200100.zip
xxxxxx__xxxxxx.com_vhost_1309200100.zip1
xxxxxx__xxxxxx.com_vhost_1309200100.zip2
xxxxxx__xxxxxx.com_vhost_1309200100.zip3

Now what I want to do is restore 11 files from the backup. What I certainly don't want to do is restore the entire domain as I don't want to loose any changes since the last backup.

As it seems impossible to extract files from the archives.

View 2 Replies View Related

Delete Backup Files Of Terminated Accounts

Jun 18, 2009

What is the best way to remove backups files of terminated accounts in the /backup/cpbackup/daily directory?

View 1 Replies View Related

Plesk 11.x / Windows :: Delete Temp Files In Folder?

Jun 20, 2013

I had a Problem with my FTP-Backup space, so PLESK couldn't do the daily backups that I configured. The problem with the ftp backup is solved. The backups are running again but there are still many large temporary files in a plesk folder.

Can I just delete them, or is this a bad idea?

The folder:
C:Program Files (x86)ParallelsPleskPrivateTemp

Screenshot

View 3 Replies View Related

Plesk 11.x / Windows :: Can Delete Files Of Recycler Folder?

Apr 21, 2013

I have noticed that i never install any program on my Server and my files of Web only 5 GB and Windows take 15 GB (My Hard Disk Usage 30 GB). Now my disk space available 1.7 GB. But when i go to check in the Recycler folder. There many files are taking up huge amounts of space, some are in excess of 10 GB . So could i deleting these files? How can I automatically delete contents of Recycler folder?

View 7 Replies View Related

Plesk 12.x / Linux :: Delete Subdomain Without Removing Files Or Database?

Aug 30, 2014

I cannot seem to find a conclusive answer to this. I use subdomains to create client websites then once they are in their own domains the subdomains still remain. Can I delete only the subdomain and leave all the files or at least leave the database since it is still connected to the new domain. Example below.

subdomain.example.com uses database1

newsite.com still uses database1

Is there a way to copy the database into the new domain?

View 1 Replies View Related

How NOT To Require CHMOD 755 Permissions To Create, Write And Delete Files On Linux

Dec 30, 2008

On my previous server and on some other hosts, I was able to write to files (for example with PHP) without having to chmod the files first.

Now I cannot, and files are required to be chmoded properly so I can write to them.

I cannot even touch() a file with PHP.

Is there any way to have this permissions removed?

I don't want to chmod the all thing, all I want is to change the configurations so I can fwrite() or file_put_contents() normally.

I's a dedicated un-managed server, so basically any advanced configurations can be done.

View 8 Replies View Related

Plesk 11.x / Linux :: Remove Domain Alias Warns It Will Delete All Related Files

Sep 2, 2013

I think the wrong text is displayed for the option "Remove Domain Alias".

In Plesk 11.5.30 Update #13, in a Webspace, on the Websites & Domains tab, if I click an alias, a window appears for the alias with the option to "Remove Domain Alias". If I move the cursor over the text "Remove Domain Alias", or click on the link, I see a pop-up: Removing this website will also delete all related files, directories, and web applications from the server.

I think this is incorrect because removing an alias should not remove any files, directories, and web applications.

View 3 Replies View Related

CentOS5 And CPanel :: Subdirectories

Nov 18, 2008

I have a VPS with CentOS5 and CPanel...for some reason if I went to that URL it would show the website for the second account created in WHM...so I modified the httpd.conf and added the domain, but for some reason subdirectories won't work on it.

View 2 Replies View Related

Apache :: How To Redirect Specific Useragent On Specific URLs

May 20, 2015

I have question: How to redirect specific useragent on specific URLs to specific URLs in .htaccess [Question]

E.g.:

I want to redirect 301 with conditional:

Code:
useragent: Firefox
from my url1: domain[dot]com/old-url1/
from my url2: domain[dot]com/old-url2/

to

Code:
to new url1: in my url1: domain[dot]com/new-url1/
to new url2: in my url1: domain[dot]com/new-url2/

I create this in my .htaccess but not work

Code:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} googlebot [NC]
RewriteRule ^/?this-is-url/?$ domain[dot]com [L,R,NC]

View 1 Replies View Related

Forward A Domain (incl. Subdirectories/subdomains) To The Same URL

Dec 4, 2008

Forwarding a domain (incl. subdirectories/subdomains) to the same URL

I'm looking for a provider which can offer a service similar to mydomain.com, I should be able to add an unlimited number of domains to forward on external urls in a way which should point anything-you-digit.myname.com and myname.com/anything-you-digit to the same destination url
If the service might also allow to add title, keywords and description for each domain, this would be even better but not required.

MyDomain can offer all this but there's a fee for each added domain while we'd prefer paying a monthly fee for a single hosting where adding multiple domains.

View 2 Replies View Related

Samba :: Isolate Different Users In A Directory And Subdirectories

Jun 24, 2008

I am trying to isolate different users in a directory and subdirectories.

Case:-

Directory A --> Sub A
--> Sub B
--> Sub C

I want everybody to be able to access "Directory A" but limited access to "Sub A", "Sub B" and "Sub C". How can i achieve that?

Currently, all users that are able to access "Directory A" can go in "Sub A", "Sub B" and "Sub C".

View 2 Replies View Related

Apache :: Applying Root Directory Attributes To All Subdirectories

Feb 18, 2013

I am running Apache2 server (version 2.2.16) on Debian Linux.

My document root for directory listings is set and in that folder I have a few other files to configure the formatting and visual effects. These are:

images(folder)
sorttable.js
style.css
index.php

These files make the root directory look very nice. If I navigate in to a subdirectory, all of the formatting and visual effects are lost and the standard text layout is shown. Is there a way I can get ALL subdirectories in the root directory to take on the visual and layout effects from the root directory?

I know it works if I manually copy each of the files to each of the subdirectories which would be fine, but the subdirectories are created dynamically and new ones are added regularly.

View 1 Replies View Related

Apache :: Force HTAccess Rules To Apply To Subdirectories

Jun 15, 2014

I have some instructions written in the .htaccess of root directory for my website. So how to force those rules to apply to all sub directories even if those sub directories have .htaccess that overwrite the rules of the mother .htaccess on the root directory ? For example the root .htaccess deny access to all *.log files, so how to force that rule even if in some subdirectories there is some .htaccess files that allow access of *.log files.

View 1 Replies View Related







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