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 > Esame di laboratorio (Giugno 2007) - Domande Thread Rating: 3 votes, 5.00 average.
Pages (39): « First ... « 12 13 14 15 [16] 17 18 19 20 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
jeremy.1983
allinuxato

User info:
Registered: Sep 2006
Posts: 42 (0.01 al dì)
Location: Saronno
Corso: Informatica
Anno: no comment
Time Online: 19:30:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by darkman13
Io non so, ma questo esame deve andare veramente di fortuna... Trenttini ti chiede delle cosse allucinanti. mentre Monga meno male ti chiede cosa molto fattibile al max in 2 righe di comandi...
Basta trenttini, sono già 2 volte che mi stampa lui..... grrrrrrrrrrrr


Non ne sono tanto certo: a me l'esercizio l'ha dato monga.

Cmq monga è certamente più disponibile di trentini. A un certo punto non riuscivo più ad uscire da elle, l'ho chiesto a trentini che mi guarda di sbieco e dice: Non lo conosco elle!! :evil::evil:

Io ho chiesto a monga come si risolveva il mio ex e a grandi linee me l'ha spiegato, facendomi anche vedere lo script sul minix.

Mi sa che per l'errore Out of space andrò da lui a ricevimento per chiederglielo.

28-09-2007 15:16
Click Here to See the Profile for jeremy.1983 Click here to Send jeremy.1983 a Private Message Find more posts by jeremy.1983 Add jeremy.1983 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
nuvoli
.consigliere.

User info:
Registered: Oct 2005
Posts: 130 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 0:50:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Presente! Stampato anche io...

Avevo studiato pochissimo (1 giorno lol) perche mi sto preparando piu per lo scritto (superato) e per l'orale, cmq ho voluto provare anche il lab per vedere come e'.

Allora partizionamento veramente semplice, fatto con facilita'.

Monga mi da l'esercizio shell: somma delle dimensione di tutti i file di solo testo (non eseguibili) che contengono al loro interno la parola copyright

Qualcuno sa risolverlo?
Per cercare i file bisogna usare il find per tipo oppure filtrare i file in base ai permessi?

Cmq da notare che elle non funzione bene, si e' impallato e non risponde ai comandi normalmente, ad esempio se si usano le frecce scrive lettere ecc, non cancella con del e cosi via. Ho perso 10 minuti solo a far venire il prof, intanto il tempo pero scorre...

28-09-2007 18:26
Click Here to See the Profile for nuvoli Click Here to See the Blog of nuvoli Click here to Send nuvoli a Private Message Find more posts by nuvoli Add nuvoli to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
banjoo
state bboni!!!

User info:
Registered: Oct 2005
Posts: 19 (0.00 al dì)
Location:
Corso: Informatica
Anno: 2
Time Online: 15:20:05: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Re: X jeremy.1983

Originally posted by bog86
Mi riferisco al funzionamento di questo particolare script; le ho provate tutte (anche a sostituire $1 col nome del file) ma in ogni caso ritorna "no such file or directory" Ma scusate, NESSUNO è riuscito a farlo andare???


A me funziona perfettamente...

30-09-2007 13:59
Click Here to See the Profile for banjoo Click here to Send banjoo a Private Message Find more posts by banjoo Add banjoo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
plafo
.illuminato.

User info:
Registered: Nov 2004
Posts: 236 (0.03 al dì)
Location: Milano
Corso: informatica
Anno: terzo
Time Online: 4 Days, 20:03:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by nuvoli
Presente! Stampato anche io...

Avevo studiato pochissimo (1 giorno lol) perche mi sto preparando piu per lo scritto (superato) e per l'orale, cmq ho voluto provare anche il lab per vedere come e'.

Allora partizionamento veramente semplice, fatto con facilita'.

Monga mi da l'esercizio shell: somma delle dimensione di tutti i file di solo testo (non eseguibili) che contengono al loro interno la parola copyright

Qualcuno sa risolverlo?
Per cercare i file bisogna usare il find per tipo oppure filtrare i file in base ai permessi?

Cmq da notare che elle non funzione bene, si e' impallato e non risponde ai comandi normalmente, ad esempio se si usano le frecce scrive lettere ecc, non cancella con del e cosi via. Ho perso 10 minuti solo a far venire il prof, intanto il tempo pero scorre...




avevo più o meno il tuo stesso esercizio....
sono partito facendo:
find / -type f | xargs grep -l "copyright"

non ho capito perchè sul pc di casa funziona mentre in laboratorio mi dava un errore sulla grep, il messaggio preciso non me lo ricordo ma sembrava quasi che gli passassi una stringa troppo lunga e che la grep non riuscisse a processarla....
qualcuno sa dirmi un motivo per cui a casa funzionava e in lab no????

01-10-2007 09:12
Click Here to See the Profile for plafo Click here to Send plafo a Private Message Find more posts by plafo Add plafo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Fenix
.fedelissimo.

User info:
Registered: Jul 2006
Posts: 46 (0.01 al dì)
Location:
Corso: Informatica
Anno: secondo
Time Online: 6:33:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

A me il Trentini ha kiesto: "per ogni utente trovare la dimensione totale di tutti i processi attivi"
Qualcuno lo sa fare?
ma sopratutto per "attivi" cosa intende? è inutile chiedere al lui perke tanto non ti risponde.. anzi quando gli ho kiesto cosa avevo sbagliato dell'esercizio mi ha detto di guardarlo a casa.. -.-

02-10-2007 14:30
Click Here to See the Profile for Fenix Click here to Send Fenix a Private Message Find more posts by Fenix Add Fenix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
imperator
.consigliere.

User info:
Registered: Apr 2004
Posts: 146 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:58:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Fenix
A me il Trentini ha kiesto: "per ogni utente trovare la dimensione totale di tutti i processi attivi"


credo intenda semplicemente i processi in memoria...


#!/bin/sh

sum=0

for user in $(cat /etc/passwd | cut -d : -f 3 | uniq); do
for proc in $(ps -axl | tr -s " " : | cur -d : -f 4,8 | grep -v "SZ"); do
uid=$(echo "$proc" | cut -d : -f 1)
size=$(echo "proc" | cut -d -f 2)

if [ $user -eq $uid ]; then
sum=$(expr $sum + $size)
fi
done

echo "l'utente $user occupa $sum KB"
sum=0
done

04-10-2007 10:19
Click Here to See the Profile for imperator Click here to Send imperator a Private Message Find more posts by imperator Add imperator to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bill76
Apprendista Dottore

User info:
Registered: May 2003
Posts: 368 (0.04 al dì)
Location: Mariano Comense (Co)
Corso: Informatica
Anno: #Error#
Time Online: 10 Days, 7:21:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate avrei 2 domande?

1) Bisogna avere un account valido per accedere alle macchiene di laboratorio?
2) Durante l'esame è possbile utilizzare il manuanali (comando man)?

Grz mille.

__________________
Poca osservazione e molto ragionamento portano all’errore,
molta osservazione e poco ragionamento conducono alla verità

02-01-2008 11:48
Click Here to See the Profile for bill76 Click here to Send bill76 a Private Message Find more posts by bill76 Add bill76 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
plafo
.illuminato.

User info:
Registered: Nov 2004
Posts: 236 (0.03 al dì)
Location: Milano
Corso: informatica
Anno: terzo
Time Online: 4 Days, 20:03:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by bill76
Scusate avrei 2 domande?

1) Bisogna avere un account valido per accedere alle macchiene di laboratorio?
2) Durante l'esame è possbile utilizzare il manuanali (comando man)?

Grz mille.




1) no ti fanno loggare loro
2) si puoi usarlo

07-01-2008 11:59
Click Here to See the Profile for plafo Click here to Send plafo a Private Message Find more posts by plafo Add plafo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
alien
.arcimaestro.

User info:
Registered: Dec 2004
Posts: 313 (0.04 al dì)
Location: milano
Corso: Informatica
Anno:
Time Online: 4 Days, 15:54:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

problema!
Non riesco a fare eseguibile un file!
è giusto chmod +x <nome_script>
Syntax Error: Newline unexpected

Ho controilato e ricontrolato il codice dello script ma niente da fare!
Mi succede su tutti i script che scrivo!
Aiutooooo....

24-01-2008 10:54
Click Here to See the Profile for alien Click here to Send alien a Private Message Find more posts by alien Add alien to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
alien
.arcimaestro.

User info:
Registered: Dec 2004
Posts: 313 (0.04 al dì)
Location: milano
Corso: Informatica
Anno:
Time Online: 4 Days, 15:54:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Risolto grazie!!!!

24-01-2008 12:24
Click Here to See the Profile for alien Click here to Send alien a Private Message Find more posts by alien Add alien to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Babbuzzo
.amico.

User info:
Registered: Feb 2006
Posts: 36 (0.00 al dì)
Location:
Corso: Informaticaz
Anno:
Time Online: 1 Day, 10:24:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by nuvoli
Monga mi da l'esercizio shell: somma delle dimensione di tutti i file di solo testo (non eseguibili) che contengono al loro interno la parola copyright

Qualcuno sa risolverlo?
Per cercare i file bisogna usare il find per tipo oppure filtrare i file in base ai permessi?


Per trovare ogni singolo file di testo che contiene la parola "copyright" basta fare:

find / -type f | xargs grep -l "copyright" | grep "\.txt$"

Per trovare la somma delle occupazioni di questi file, invece, su due piedi credo bisogna fare un piccolo script.
Stasera vedo meglio.:razz:

__________________
Tommy: signor o'neill...
Micky: cazzo parli? kama micky
Tommy:come va?
Micky: beh dazza ci pai ma cavalli, sai...[...] porcocul! cicco zisiloi! sei grosso! hey babbuzzi:pazo grosso!

Last edited by Babbuzzo on 26-01-2008 at 17:59

24-01-2008 13:09
Click Here to See the Profile for Babbuzzo Click here to Send Babbuzzo a Private Message Find more posts by Babbuzzo Add Babbuzzo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mjfan80
.consigliere.

User info:
Registered: Nov 2001
Posts: 140 (0.02 al dì)
Location: Vallecamonica (BRESCIA)
Corso: Informatica quinquennale
Anno: 5°? 6°? 7°? bho
Time Online: 19:22:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by n3o

[*]Trovare tutti i files eseguibili > 5k e evidenziando i 5 più grandi
Questo mi ha fatto davvero dannare l'anima...per me un file è eseguibile se lo è per tutti gli utenti (altrimenti le combinazioni possibili sono troppe!)
find / -type f | xargs ls -l | grep "^...x..x..x" | tr -s ' ' ' ' | cut -d ' ' -f 5,9 | sort -nr | head -5


io l'ho risolto così, penso sia corretto

find / -type f -size +10 | xargs ls -l | grep "^...x..x..x" | sort +4 -n | tail -5

che ne dite?

__________________
Heal The World
Just Because You Read It In A Magazine Or You See It On A Tv Scren Don't Make It Factual

Last edited by mjfan80 on 24-01-2008 at 21:11

24-01-2008 20:54
Click Here to See the Profile for mjfan80 Click here to Send mjfan80 a Private Message Visit mjfan80's homepage! Find more posts by mjfan80 Add mjfan80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bullet
.fedelissimo.

User info:
Registered: Oct 2004
Posts: 44 (0.01 al dì)
Location: busnago
Corso: informatica
Anno: 2
Time Online: 11:13:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma se devo cercare i file + grandi di 5k +piccoli di 100k non devo fare
find / -type f -size +10 -a -size -200
invece di :
find / -type f -size +5 -a -size -100
??

sul wiki alla domanda c'è scritto :
quanti file sono piu' grandi di 100k in /home ?
find /home -type f -size +200 | wc

25-01-2008 13:02
Click Here to See the Profile for bullet Click here to Send bullet a Private Message Visit bullet's homepage! Find more posts by bullet Add bullet to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mjfan80
.consigliere.

User info:
Registered: Nov 2001
Posts: 140 (0.02 al dì)
Location: Vallecamonica (BRESCIA)
Corso: Informatica quinquennale
Anno: 5°? 6°? 7°? bho
Time Online: 19:22:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by bullet
ma se devo cercare i file + grandi di 5k +piccoli di 100k non devo fare
find / -type f -size +10 -a -size -200
invece di :
find / -type f -size +5 -a -size -100
??


sì, è così, hai ragione
find da il risultato in blocchi, qunidi 512 byte (mezzo k)

quello è un errore che non è stato corretto in alcune soluzioni proposte, ma riconosciuto dagli stessi autori

__________________
Heal The World
Just Because You Read It In A Magazine Or You See It On A Tv Scren Don't Make It Factual

25-01-2008 13:28
Click Here to See the Profile for mjfan80 Click here to Send mjfan80 a Private Message Visit mjfan80's homepage! Find more posts by mjfan80 Add mjfan80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bullet
.fedelissimo.

User info:
Registered: Oct 2004
Posts: 44 (0.01 al dì)
Location: busnago
Corso: informatica
Anno: 2
Time Online: 11:13:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mjfan80
io l'ho risolto così, penso sia corretto

find / -type f -size +10 | xargs ls -l | grep "^...x..x..x" | sort +4 -n | tail -5

che ne dite?


io ho capito questo : i file eseguibili hanno i permessi tutti a 1
quindi io ho fatto:

find / -perm 111 -a -size +10 |xargs du| sort |tail -n -5

cosa ne pensate??

25-01-2008 14:30
Click Here to See the Profile for bullet Click here to Send bullet a Private Message Visit bullet's homepage! Find more posts by bullet Add bullet to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 01:50.    Post New Thread    Post A Reply
Pages (39): « First ... « 12 13 14 15 [16] 17 18 19 20 » ... Last »   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.086 seconds (53.91% PHP - 46.09% MySQL) con 23 query.