>>>>> "John" == John Jason Jordan <[email protected]> writes:

John> I wish to print a list of directories (but not the files or
John> subdirectories contained in the directories) on Xubuntu 12.04 (up
John> to date). I normally use the GUI file manager Thunar, but it has
John> no menu item to print anything. There is, however, Edit >
John> Configure custom actions, which appears to require me to use
John> xfprint with specific options, but I haven't found much
John> information about using xfprint.

John> I suspect this might be easier from the command line, but I don't
John> know where to start looking for the right tool. That is, I have
John> used lpr in the past and I have a fair idea of what the available
John> options are, but lpr seems to be useful only for printing the
John> contents of a file, not for printing a list of folders.

How about:

  du | cut -f 2-

The du utility descends a directory tree and tells you how many 1k
blocks are stored in each subtree (or something like that), giving you a
rough idea of where your diskspace is going.  The "cut -f 2-" part just
throws the disk usage information away.


-- 
Russell Senior, President
[email protected]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to