You are not logged in.

#1 2009-09-09 11:05:48

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

I am looking for a script that analyzes the contents of an external HD

I have many external USB Hard disk devices. I would know if there is a script or a program wich analyzes all the HD content and prints it on a txt file as a family tree.
It would be better if near each file it's showed its size, and at the header the occupied/free/total HD space.

An example of the family tree concept I mean (even if this is an image):
familytree.png

Last edited by Garret (2009-09-09 11:31:25)

Offline

#2 2009-09-09 11:28:57

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: I am looking for a script that analyzes the contents of an external HD

This prints a nice tree which shows size along with each file's name.

$ tree /mnt -h -a -A

As for the total HD space, simply type

$ df -h /mnt

Last edited by lolilolicon (2009-09-09 11:35:11)


This silver ladybug at line 28...

Offline

#3 2009-09-09 12:10:29

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

Re: I am looking for a script that analyzes the contents of an external HD

Really useful this tree command. Printing on the console characters are right, but why if I give:

tree /media/My\ Book/ -h -a -A >>list.txt

the file "list.txt" presents strange characters:

/media/My Book/
(0tqq (B[   0]  Applicazioni
(0x   tqq (B[4.0K]  Emulazione
(0x   x   tqq (B[4.0K]  Avventure grafiche
(0x   x   x   tqq (B[   0]  Day of the Tentacle
(0x   x   x   x   tqq (B[5.7K]  Codici Day of the Tentacle.doc
(0x   x   x   x   mqq (B[4.0K]  DOTT
(0x   x   x   x       tqq (B[ 21K]  ADLIB.IMS
(0x   x   x   x       tqq (B[ 766]  DOTTICON.ICO
(0x   x   x   x       tqq (B[ 19K]  GMIDI.IMS
(0x   x   x   x       tqq (B[8.0K]  MANIAC
(0x   x   x   x       x   tqq (B[1.9K]  00.LFL

Last edited by Garret (2009-09-09 12:11:35)

Offline

#4 2009-09-09 12:19:09

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: I am looking for a script that analyzes the contents of an external HD

Try without -A option


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB