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 ... « 23 24 25 26 [27] 28 29 30 31 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.09 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Avevo letto un qualche post che spiegava i range di valori corretti per i Cyl, però non c'ho capito niente.
Il problema è quando vado a modificare le partizioni, cosa che potrebbe avvenire tranquillamente all'esame immagino.

__________________
Portale segnalazioni marchi-negozi di abbigliamento
http://www.ovojo.com

18-06-2009 14:13
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fain182
dsy newser

User info:
Registered: Apr 2008
Posts: 126 (0.02 al dì)
Location: Milano
Corso: informatica
Anno: 3
Time Online: 2 Days, 1:09:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by xSharKMaNx
Con MINIX hai un max di 5 partizioni "standard", dopodichè dovrai creare le sottopartizioni,

No, il numero di partizione massimo primarie (quindi senza contare le estese) è 4, e non è un limite di minix, ma è legato alla tabella delle partizioni, e quindi riguarda tutti i sistemi operativi..

18-06-2009 14:38
Click Here to See the Profile for fain182 Click here to Send fain182 a Private Message Find more posts by fain182 Add fain182 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Ertyl
.amico.

User info:
Registered: Feb 2006
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 7:31:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Esercizio all'esame di oggi:

# Trovare tutti i script del sistema, minori di 1 k, copiarli su /tmp/script/ Aggiungerli tutti i file su un file.tar !

__________________


Web Developer / SEO

19-06-2009 15:30
Click Here to See the Profile for Ertyl Click Here to See the Blog of Ertyl Click here to Send Ertyl a Private Message Visit Ertyl's homepage! Find more posts by Ertyl Add Ertyl to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.09 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il mio era tipo:
calcolare la somma delle dimensioni dei file *.s.

__________________
Portale segnalazioni marchi-negozi di abbigliamento
http://www.ovojo.com

19-06-2009 17:10
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
AAndrea
.amico.

User info:
Registered: Apr 2008
Posts: 25 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 4:05:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il mio:
-script: archiviare in un ar tutti i file minori di 2 kb e che inizano con m
kernel: fare un alias ad una syscall e creare un file che la fa partire

19-06-2009 20:18
Click Here to See the Profile for AAndrea Click here to Send AAndrea a Private Message Find more posts by AAndrea Add AAndrea to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dazan
:: ZAR Essere Avanti ::

User info:
Registered: Sep 2002
Posts: 1043 (0.13 al dì)
Location: Brisbane
Corso: Informatica
Anno:
Time Online: 5 Days, 21:57:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Ertyl
Esercizio all'esame di oggi:

# Trovare tutti i script del sistema, minori di 1 k, copiarli su /tmp/script/ Aggiungerli tutti i file su un file.tar !



come hai risolto?

22-06-2009 09:00
Click Here to See the Profile for Dazan Click here to Send Dazan a Private Message Find more posts by Dazan Add Dazan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fain182
dsy newser

User info:
Registered: Apr 2008
Posts: 126 (0.02 al dì)
Location: Milano
Corso: informatica
Anno: 3
Time Online: 2 Days, 1:09:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a me ha chiesto:
script: trovare tutti i file che hanno il numero di blocchi pari
kernel: scrivere un messaggio sullo schermo quando viene avviato un programma setuid root

22-06-2009 09:27
Click Here to See the Profile for fain182 Click here to Send fain182 a Private Message Find more posts by fain182 Add fain182 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.09 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by number15
Il mio era tipo:
calcolare la somma delle dimensioni dei file *.s.

Mi quoto per aggiungere la "soluzione" se serve a qualcuno... vado a memoria (mi ha un po' aiutato l'assistente).

code:
for file in $(find / -type f -name *.s); do sum=$(stat -size $file) tot=$(expr $sum + $tot) echo $tot done

22-06-2009 09:39
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Ertyl
.amico.

User info:
Registered: Feb 2006
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 7:31:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Dazan
come hai risolto?


Tutti gli script cominciano con "#!/bin/sh" quindi trovi tutti i file che contengono "#!/bin/sh" ed è fatta :)

__________________


Web Developer / SEO

22-06-2009 09:41
Click Here to See the Profile for Ertyl Click Here to See the Blog of Ertyl Click here to Send Ertyl a Private Message Visit Ertyl's homepage! Find more posts by Ertyl Add Ertyl to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
delleroby
.amico.

User info:
Registered: May 2007
Posts: 30 (0.00 al dì)
Location:
Corso: nformatica
Anno: 1
Time Online: 1 Day, 6:01:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao a tutti,
grazie a tutti quelli che hanno partecipato a questo forum perchè mi è stato veramente utile per passare l'esame...
Vi dò una dritta se qualcuno ancora non lo sapesse(a me la dritta l'ha data l'assistente di lab).
Per copiare i file da una cartella a un altra mantenendo la gerarchia delle cartelle basta metterli in un archivio e poi scompattarli nella cartella in oggetto.Molto semplice ma se uno non lo sà cerca di fare di quei casini...............
Non sono sicuro però dovrebbe mantenere anche i permessi perchè non è solo una copia di un file ma dovrebbe essere un archivio del file stesso.

Ancora grazie a tutti

24-06-2009 07:28
Click Here to See the Profile for delleroby Click here to Send delleroby a Private Message Find more posts by delleroby Add delleroby to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spriggan
.amico.

User info:
Registered: Oct 2007
Posts: 26 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 12:11:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao a tutti,
sono di ritorno dall'esame di sistemi operrativi (laboratorio).

Mi ha chiesto (Martignoni):
partizione
shell -> mostrare, per ogni utente, il numero di file presenti sul sistema.
kernerl -> stampare, quando viene lanciato un processo che necessita privilegi superiori, un messaggio a video con pi, uid, nome processo.

La parte di kernel non l'ho fatta bene e alla fine mi ha dato 26.

Ciao e grazie a questo topic!!!!!

__________________
Universitario io? ma siam sicuri?

03-07-2009 13:23
Click Here to See the Profile for spriggan Click here to Send spriggan a Private Message Find more posts by spriggan Add spriggan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LG2100
.fedelissimo.

User info:
Registered: Nov 2007
Posts: 44 (0.01 al dì)
Location: Milano
Corso: Informatica magistrale
Anno: Laureato
Time Online: 4 Days, 23:21:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Shell: memorizzare in un archivio .ar tutti i file creati negli ultimi 2 giorni di dimensione minore di 5k.
È una riga (find / -type f -size -10 -ctime -2 | xargs ar rc archivio.ar), l'unica cosa bisogna sapere che -ctime non è tecnicamente la data di creazione ma la data di ultima modifica degli attributi del file, che molto spesso coincide con la data di creazione. L'opzione ctime di find non è documentata, ma funziona.
Kernel: era una banale syscall con argomento numerico.

03-07-2009 20:36
Click Here to See the Profile for LG2100 Click here to Send LG2100 a Private Message Find more posts by LG2100 Add LG2100 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
v0t
.amico.

User info:
Registered: Jun 2009
Posts: 23 (0.00 al dì)
Location:
Corso: Informatica
Anno: I fuori corso
Time Online: 7:44:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Appello 03/07/2009:

Script: Elencare tutte le directory create in un numero di secondi dispari

find / -type dir | while read x; do i=$(stat -ctime $x); RESTO=$(expr $i % 2); if [ $RESTO -ne 0 ]; then echo $x $i; fi; done

In un file di script con i dovuti spazi, si capisce meglio.
Ce n'era un altro simile in cui i soggetti erano dei file minori (o maggiori non ricordo) di 5k, e anzichè stamparli a video dovevano essere archiviati con tar:
semplicemente va' modificato nel find "-type f" e va' aggiunto "-size -10" (o +10 in base alla richiesta), e dopo echo nel corpo dell' if va' aggiunto un " | xargs tar cvf archivio.tar". (leviamo pure $i come argomento di echo).

Spero di non aver fatto errori (comunque a me funzionano, quindi i concetti son quelli).

15-07-2009 18:27
Click Here to See the Profile for v0t Click here to Send v0t a Private Message Find more posts by v0t Add v0t to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
v0t
.amico.

User info:
Registered: Jun 2009
Posts: 23 (0.00 al dì)
Location:
Corso: Informatica
Anno: I fuori corso
Time Online: 7:44:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Appello 17/07/2009:

Script: Trovare l'occupazione totale di tutti i file che iniziano con "c" e la cui data di modifica risale a più di 30 giorni fa.

SUM=0;
for DIM in $(find / -type f -name c* -mtime +30 | xargs du | cut -f 1); do
SUM=$(expr $SUM + $DIM);
done;
echo $SUM

Da quello che ho visto e sentito, gli script sono molto simili tra loro.

[edit - aggiunta]
Esercizio Kernel: Impedire la cancellazione dei file che iniziano con '+'.

Dovete aprire il file /usr/src/servers/fs/link.c

All'interno viene descritta una procedura chiamata do_unlink().

Ci sono vari test....qui aggiungete il vostro. Il nome del file è contenuto in 'user_path', quindi
if (*user_path == '+')
printf("Il nome del file inizia con '+' e il Monga ha detto che non può essere cancellato!\n");

Si, i docenti mi han detto che basta una printf per fargli capire che hai capito dove andare a metter le mani. (comunque credo che serva semplicemente mettere uno di quegli errori che vengono restituiti dopo i check all'interno della stessa procedura).

Comunque credo che si possa anche farlo nella procedura unlink_file() come mi è stato suggerito da alcuni. Provate se volete :P

Last edited by v0t on 17-07-2009 at 19:09

17-07-2009 18:38
Click Here to See the Profile for v0t Click here to Send v0t a Private Message Find more posts by v0t Add v0t to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hyperion
.illuminato.

User info:
Registered: Oct 2007
Posts: 171 (0.03 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 3 Days, 12:37:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Shell : Trovare il numero di file che hanno blocchi dispari
Kernel : Impedire la cancellazione di tutti i file che iniziano con + (vedi sopra)

Consiglio: va in ordine di iscrizione quindi iscrivetevi non appena vedete l'avviso sul sito perchè potreste rischiare di rimanere tutta la mattinata ad aspettare visto che ne fa entrare 5 alla volta..

18-07-2009 12:11
Click Here to See the Profile for hyperion Click here to Send hyperion a Private Message Find more posts by hyperion Add hyperion to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 09:20.    Post New Thread    Post A Reply
Pages (39): « First ... « 23 24 25 26 [27] 28 29 30 31 » ... 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.066 seconds (58.04% PHP - 41.96% MySQL) con 26 query.