Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
Clearing disc space on linux 5.2

Clearing disc space on linux 5.2

2006-01-13       - By akonstam@(protected)

 Back
Reply:     1     2     3     4  

On Fri, Jan 13, 2006 at 04:46:42PM -0000, Harry Hambi wrote:
> Thanx Aaron....you couldn't explain a bit more.....example of how to run
> the command.
>
> Rgds.
>
> Harry
Ok lets say you want to remove all files that were last accessed more
than 2 days ago or  there status was last changed more than 3 days ago
or are empty and are simple files starting at the current directory.

find ./ -name "*" -type f  ( -empty -o -atime +2 -o -ctime +3) -exec rm {} \;

Do a : man find
to see other options of which there are many. You could probably do
without the -name "*" and all files that are matched and therefore
deleted will have there names printed. There are examples of use in
the man page.
>
> -- --Original Message-- --
> From: valhalla-list-bounces@(protected)
> [mailto:valhalla-list-bounces@(protected)] On Behalf Of
> akonstam@(protected)
> Sent: 13 January 2006 16:24
> To: Discussion of Red Hat Linux 7.3 (Valhalla)
> Subject: Re: Clearing disc space on linux 5.2
>
> On Fri, Jan 13, 2006 at 12:39:02PM -0000, Harry Hambi wrote:
> > Hi All,
> > Trying to clear disc space on my linux 5.2 box......is there a command
>
> > that will help me delete old files the system doesn't use?, looking
> > for a coomand which will tell me how old a file is or when it was last
>
> > used by the system, thanx.
> >
> > Rgds.
> >
> > Harry.
> The find command executing a rm based on criteria such as last
> modification time and creation time should work for you.
> -- ---- ---- ---- ---- ---- ---- ---- -----
> Aaron Konstam
> Computer Science
> Trinity University
> telephone: (210)-999-7484
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> Valhalla-list mailing list
> Valhalla-list@(protected)
> https://www.redhat.com/mailman/listinfo/valhalla-list
>
> http://www.bbc.co.uk/
>
> This e-mail (and any attachments) is confidential and may contain
> personal views which are not the views of the BBC unless specifically
> stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately. Please note that the
> BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> Valhalla-list mailing list
> Valhalla-list@(protected)
> https://www.redhat.com/mailman/listinfo/valhalla-list

--

=======================================================================
Graduate life: It's not just a job.  It's an indenture.
-- ---- ---- ---- ---- ---- ---- ---- -----
Aaron Konstam
Computer Science
Trinity University
telephone: (210)-999-7484

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Valhalla-list mailing list
Valhalla-list@(protected)
https://www.redhat.com/mailman/listinfo/valhalla-list