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 ... « 8 9 10 11 [12] 13 14 15 16 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

modesto .. vero

23-08-2007 15:13
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DarkSchneider
Why so serious?

User info:
Registered: Feb 2004
Posts: 1250 (0.16 al dì)
Location: Brescia
Corso: Informatica
Anno: out of bounds :/
Time Online: 26 Days, 1:01:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho fatto un po' di confusione...

ma queste domande di laboratorio fanno riferimento al turno di Bruschi, a quello di Trentini, oppure sono uguali per entrambi ? :?

27-08-2007 23:36
Click Here to See the Profile for DarkSchneider Click here to Send DarkSchneider a Private Message Find more posts by DarkSchneider Add DarkSchneider to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
poi_1969
.grande:maestro.

User info:
Registered: Aug 2005
Posts: 507 (0.07 al dì)
Location: milano
Corso: informatica
Anno:
Time Online: 10 Days, 22:40:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

tutto uguale
La prova di laboratorio è unica Trentini e Monga.

28-08-2007 08:35
Click Here to See the Profile for poi_1969 Click here to Send poi_1969 a Private Message Find more posts by poi_1969 Add poi_1969 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 umibozu

-Calcolare la somma della dimensione di file eseguibili che hanno all'interno la parola copyright non sensitive



io l'ho risolto in questo modo:

#! /bin/sh

SUM=0

for SIZEFILE in $(find / -type f | xargs grep -il "copyright" | xargs ls -lF | grep "\*$" | tr -s " " : | cut -d : -f 5); do
SUM=$(expr $SUM + $SIZEFILE)
done
echo "la somma è: $SUM"

le opzioni -il del grep mi consentono di:
-i per il case insensitive
-l per elencare il nome del file contente la parola copyright (altrimenti mi avrebbe stampato per ogni file la riga contenente la parola copyright)

ciauz

Last edited by imperator on 03-09-2007 at 16:25

28-08-2007 10:57
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
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 umibozu
-Trova il processo che occupa per ogni utente più memoria(anke questa non riesco a risolvere)


ho provato a risolverlo così:

#! /bin/sh

MAXSIZE=0

for USER in $(cat /etc/passwd | cut -d : -f 3 | uniq); do

for PROC in $(ps -axl | tr -s " " : | cut -d : -f 4,8 | grep -v "SZ"); do
UID=$(echo $PROC | cut -d : -f 1)
SIZE=$(echo $PROC | cut -d : -f 2)

if [ $UID -eq $USER -a $SIZE -gt $MAXSIZE ]; then
MAXPROC=$PROC
MAXSIZE=$SIZE
fi

done
echo "il processo dell'utente $USER + grande è: $MAXPROC"
MAXPROC="nessun processo"
MAXSIZE=0
done

Last edited by imperator on 05-09-2007 at 14:30

28-08-2007 16:07
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
umibozu
.novellino.

User info:
Registered: Jun 2003
Posts: 8 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 12:45:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie!! ora ho un quesito da chiedervi... quando si usa il du per conoscere quanto spazio occupa un file in memoria,viene restituito
un valore con quale unità di misura??? byte,kilobyte, numero di blocchi, patate, pomodori!!!!!!!!!!!! il man non specifica
quale unità di misura si usa e facendo un test un file di 256 byte il du restituisce 4!!!

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

User info:
Registered: Oct 2005
Posts: 146 (0.02 al dì)
Location:
Corso: Informatica
Anno: 1
Time Online: 3 Days, 9:07:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by n3o
[list]


[*]Spostare tutti i files che iniziano per m da una directory (e sottodirectory) ad un'altra
[B]mv /directory/albero1/m* /directory/albero2




così copio file e sottodirectory che iniziano per m : se ho una sottodirectory che si chiama "mare" copierò anche tutti i file di questa sottodirectory, compresi quelli che NON iniziano per m.

Last edited by Kurt84 on 02-09-2007 at 14:26

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

User info:
Registered: Oct 2005
Posts: 146 (0.02 al dì)
Location:
Corso: Informatica
Anno: 1
Time Online: 3 Days, 9:07:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by umibozu
grazie!! ora ho un quesito da chiedervi... quando si usa il du per conoscere quanto spazio occupa un file in memoria,viene restituito
un valore con quale unità di misura??? byte,kilobyte, numero di blocchi, patate, pomodori!!!!!!!!!!!! il man non specifica
quale unità di misura si usa e facendo un test un file di 256 byte il du restituisce 4!!!


Dovrebbero essere i blocchi occupati. Tieni conto che nel man dice anche che a volte du potrebbe sovrastimare l'occupazione effettiva di un file..

02-09-2007 13:17
Click Here to See the Profile for Kurt84 Click here to Send Kurt84 a Private Message Find more posts by Kurt84 Add Kurt84 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
umibozu
.novellino.

User info:
Registered: Jun 2003
Posts: 8 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 12:45:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie Kurt! la parte del man dove dice ke il du potrebbe sovrastimare l'occupazione dei file l'ho letta ankio xò se un blocco è di 512 byte e il risultato del du per un file da 256 byte è 4 blocchi... penso ke sia un pò esagerata come misura!!!

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

User info:
Registered: Jun 2003
Posts: 8 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 12:45:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Avete altri esercizi dati durante l'esame di laboratorio??

04-09-2007 16:05
Click Here to See the Profile for umibozu Click here to Send umibozu a Private Message Find more posts by umibozu Add umibozu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
marcolino78
.simpatizzante.

User info:
Registered: Jun 2004
Posts: 11 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 14:02:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question domandina

Ciao gente,
piccola domandina???
Durante un esame di lab è stato chiesto di:

copiare una directory mantenendo la struttura delle sottodirectory e i permessi, evitando però di copiare il contenuto delle cartelle(i file che all'interno che non sono directory)

Aiutoooo?!?!?!?!

Idee???

17-09-2007 10:47
Click Here to See the Profile for marcolino78 Click here to Send marcolino78 a Private Message Find more posts by marcolino78 Add marcolino78 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.12 al dì)
Location: Brisbane
Corso: Informatica
Anno:
Time Online: 5 Days, 21:57:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per esercitarmi a casa come si fa?

17-09-2007 11:56
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
umibozu
.novellino.

User info:
Registered: Jun 2003
Posts: 8 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 12:45:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao a tutti!
Marco io ho risolto l'esercizio usando uno script perchè non ho trovato ne in cp ne in cpdir un comando utile per ottenere solo
le directory.

#/bin/sh
cpdir -p /directoryA /directoryB
for file in $(find /root/paper -type f); do
rm $file
done

19-09-2007 10:28
Click Here to See the Profile for umibozu Click here to Send umibozu a Private Message Find more posts by umibozu Add umibozu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
marcolino78
.simpatizzante.

User info:
Registered: Jun 2004
Posts: 11 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 14:02:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

credo che possa andar bene anche così,
perchè rimuovi i file all'interno di /root/paper????


Mille grazie.

19-09-2007 14:31
Click Here to See the Profile for marcolino78 Click here to Send marcolino78 a Private Message Find more posts by marcolino78 Add marcolino78 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.12 al dì)
Location: Brisbane
Corso: Informatica
Anno:
Time Online: 5 Days, 21:57:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

gli esercizi che ci sno si fanno dal dos di windows?

19-09-2007 15:24
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
All times are GMT. The time now is 17:41.    Post New Thread    Post A Reply
Pages (39): « First ... « 8 9 10 11 [12] 13 14 15 16 » ... 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.150 seconds (40.97% PHP - 59.03% MySQL) con 23 query.