11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Element 9: 0<br />

Element 10: 0<br />

Element 11: 1051221030<br />

Element 12: 1051214068<br />

Element 13: 1051214068<br />

For a link in the form of linkname -> realname<br />

stat -t linkname returns the linkname (link) information<br />

stat -lt linkname returns the realname information<br />

stat -tf and stat -ltf fields<br />

[0] name<br />

[1] ID-0? # Maybe someday, but Linux stat structure<br />

[2] ID-0? # does not have either LABEL nor UUID<br />

# fields, currently information must come<br />

# from file-system specific utilities<br />

These will be munged into:<br />

[1] UUID if possible<br />

[2] Volume Label if possible<br />

Note: ’mount -l’ does return the label and could return the UUID<br />

[3] Maximum length of filenames<br />

[4] Filesystem type<br />

[5] Total blocks in the filesystem<br />

[6] Free blocks<br />

[7] Free blocks for non-root user(s)<br />

[8] Block size of the filesystem<br />

[9] Total inodes<br />

[10] Free inodes<br />

-*-*- Per:<br />

Return code: 0<br />

Size of array: 11<br />

Contents of array<br />

Element 0: /home/mszick<br />

Element 1: 0<br />

Element 2: 0<br />

Element 3: 255<br />

Element 4: ef53<br />

Element 5: 2581445<br />

Element 6: 2277180<br />

Element 7: 2146050<br />

Element 8: 4096<br />

Element 9: 1311552<br />

Element 10: 1276425<br />

StatFieldsDoc<br />

# LocateFile [-l] FileName Location-Array-Name<br />

# LocateFile [-l] -of FileName Location-Array-FileName<br />

LocateFile()<br />

Appen<strong>di</strong>ce A. Script aggiuntivi<br />

652

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!