Printing Foreign Directory

Steve Kilbride Freebeer at rogers.com
Thu Feb 21 01:01:09 UTC 2008



>My first day on the list and I can actually answer one!  :-)

I just bought a removable drive today, as a matter of fact, so the 
concept is fresh.  Once I formatted it, Ubuntu recognized it and 
mounted it under /media/disk (with a link/icon on the Desktop).

To output additional folders under a folder, you can use the 
"recursion" switch.  Many a command line will accept that as an 
argument and is a very useful tool in your Swiss Army Knife of 
Commands to Know(tm).

So to list a directory/folder's contents, and to include the 
sub-folders, you'd issue:

ls -R /path/to/directory/

Note the the -R is a capital "R".


>-----Original Message-----
>From: Jordan Rudderham <jd.rudderham at gmail.com>
>Reply-To: The Canadian Ubuntu Users Community
><ubuntu-ca at lists.ubuntu.com>
>To: The Canadian Ubuntu Users Community <ubuntu-ca at lists.ubuntu.com>
>Subject: Printing Foreign Directory
>Date: Mon, 18 Feb 2008 22:24:25 -0600
>
>         I'm trying to print a foreign directory (removable HDD). The methods
>I've seen for printing out the list of items in a directory is ls >
>file.txt. But I can't seem to be able to access my removable hdd in the
>terminal (I'm ignorant of where I can find it). The secondary question
>to this is: is there any other way to print a list of the items in a
>directory that also prints the items in sub-directories of that
>directories?





More information about the ubuntu-ca mailing list