defragment

v13 at priest.com v13 at priest.com
Mon Jul 2 19:56:01 EEST 2001


Ena syntomo port (toy defrag), tha itan to :

cat > /tmp/klm.sh
#!/bin/sh
MPLA=Tria_Poylakia_Kathontan_Mplampla_mplimpli
echo "$1"
mv $1 $1.$MPLA
cp -p $1.$MPLA $1
rm -f $1.MPLA
^Z

chmod +x /tmp/klm.sh

cat > /tmp/defrag.sh
#!/bin/sh
find $1 -xdev -type f -size +4096b -exec /tmp/klm.sh {} \;
^Z

chmod +x /tmp/defrag.sh

/tmp/defrag.sh /usr/local

kai kanei 'defrag' ta arxeia toy /usr/local (poy fysika einai sto
idio partition kai exoyn megethos > 4kb)

An eksereseis, to oti tha doylepsei kai sta idi ok arxeia, kathos kai oti
ta hard links tha ta peiraksei 2 fores, den prepei na yparksei kapoio
idiaitero prob.. An thes dokimase to kai pes mas :P

<<V13>>

p.s. Ypotheto, oti tha mporoyses na ylopoihseis kai ena proxeiro antivirus
me grep, sed kai isos awk:)

On Monday 02 July 2001 19:32, Dimitris Sagias wrote:
> Mhn to barate to paidi re.
>
> Stamath, gia na mpei kapoios ston kopo kai na kanei port mia efarmogh kai
> eidika mia closed source efarmogh pou xreiazetai reverse engineering (me
> liga logia na mantepseis ton tropo pou douleyei kai na grapseis kwdika gia
> aythn) prepei na yparxei kalos logos.
> Aythn thn stigmh den mporw na skeftw mia apo tis leitourgies twn norton pou
> na einai xrhsimh gia to linux. Opws 8a eides sta prohgoumena posts ta
> filesystems pou xrhsimopoiei to linux den xreiazontai defragmentation. Kai
> ta unices den exoun problhmata me viruses. H norton genika zei mpalwnontas
> tis ateleies twn winblows.
>
> Pantws 8a synhstousa na diabazeis poio prosektika ta prohgoumena posts.
>
> Dimitris
>
> On Monday 02 July 2001 06:57 am, Kekes Stamatis wrote:
> > ASP wrote:
> > > yparxei kapio kalo programma defragment gia lin ?
> > >
> > > --
> > > linux-greek-users mailing list -- http://lists.hellug.gr
> >
> > Kalo to defrag alla mia pou protimo ta Norton mipos diatithetai kaneis
> > na ta kanei port gia linux ????
> >
> >
> > --
> > linux-greek-users mailing list -- http://lists.hellug.gr
>
> --
> linux-greek-users mailing list -- http://lists.hellug.gr



More information about the Linux-greek-users mailing list