Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > esercizio
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
zigio
.amico.

User info:
Registered: Feb 2008
Posts: 23 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 7:07:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
esercizio

ciao a tutti ,qualcuno sa come si risolvono questi esercizi:


Calcolare il rapporto tra il numero di file nel filesystem (o in una directory specificata) e lo spazio occupato



Calcolare il rapporto tra il numero di file nel filesystem (o in una directory specificata) e lo spazio occupato ESCLUDENDO gli hardlink


grazie dell'attenzione

06-10-2009 13:03
Click Here to See the Profile for zigio Click here to Send zigio a Private Message Find more posts by zigio Add zigio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Calcolare il rapporto tra il numero di file nel filesystem (o in una directory specificata) e lo spazio occupato

tt=0;
find /usr/bin -type f > tmp;
while read l;
do tt=$(expr $tt + $(du $l|cut -f 1));
done <tmp;
ris=$(expr $tt / $(wc -l tmp|cut -d " " -f 5));
echo "risultato $ris (KB/file)"


Calcolare il rapporto tra il numero di file nel filesystem (o in una directory specificata) e lo spazio occupato ESCLUDENDO gli hardlink

find / -type f -exec ls -li {} \; | sort +0 -nu

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

18-10-2009 13:25
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 20:44.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.089 seconds (56.38% PHP - 43.62% MySQL) con 26 query.