[Discuss] file system hierarchy.
chris wakefield
blackcrow at shaw.ca
Tue Oct 16 11:32:09 PDT 2007
> Sorry that should read:
>
> export DD=`pwd`;find -type d | sed -e "s/\.\//\//g"|awk '{print
> ENVIRON["DD"] $0}' |awk -F "/"
> '{for(i=2;i<=NF;i++){spc="";for(j=2;j<i;j++){spc=sprintf("%s+",spc);};t="";
>for(j=2;j<i;j++){t=sprintf("%s",spc);}t=sprintf("%s/%s",t,$i);print t;}}'|
> less
>
>
> all on one line.
Hi Peter.
I ran that script as you suggested and it works, of course, but it creates a
file that is to big to easily work with. I have 4 gigs of ram on an amd
X2 ....:^) It also doesn't seem to print the actual device names in
the "tree", but thanks anyway!
I installed the tree command on my server and this is what I get:
root at gateway /> tree --device |grep user
| `-- [769] user
| |-- [833] user -> /mnt/hdb1/user
...which is the info I was seeking....
This was almost what I was looking for, except the device "names" are
currently numbers with no reference to a physical device.
Ultimately, I've realized that I think a gui that allows one to "drill down"
into the tree to graphically represent, in a 3d kind of way, the location of
a particular file or directory is what I was looking for. Perhaps even an
ncurses based output would be better. In the end, konqueror would be the way
to go, if I could.
Thanks for all the responses.
Chris W.
More information about the Discuss
mailing list