recursively list directory contents

T

thufir

Is there a switch of some sort for "dir" to recursively list directory
contents, from the terminal, as below from Linux?


thufir@arrakis:~/bcit-comp2611-lab7$
thufir@arrakis:~/bcit-comp2611-lab7$ ll src/ -R
src/:
total 4
drwxr-xr-x 6 thufir thufir 4096 2008-05-24 03:33 a00720398

src/a00720398:
total 12
drwxr-xr-x 3 thufir thufir 4096 2008-05-24 03:33 data
drwxr-xr-x 3 thufir thufir 4096 2008-05-24 03:33 labs
drwxr-xr-x 3 thufir thufir 4096 2008-05-24 03:33 ui

src/a00720398/data:
total 20
-rw-r--r-- 1 thufir thufir 209 2008-05-24 03:33 AddressFactory.java
-rw-r--r-- 1 thufir thufir 196 2008-05-24 03:33 Address.java
-rw-r--r-- 1 thufir thufir 235 2008-05-24 03:33 DataFactory.java
-rw-r--r-- 1 thufir thufir 232 2008-05-24 03:33 Data.java
-rw-r--r-- 1 thufir thufir 168 2008-05-24 03:33 Factory.java

src/a00720398/labs:
total 4
-rw-r--r-- 1 thufir thufir 672 2008-05-24 03:33 Lab7.java

src/a00720398/ui:
total 32
-rw-r--r-- 1 thufir thufir 11770 2008-05-24 03:33 GuestForm.form
-rw-r--r-- 1 thufir thufir 11909 2008-05-24 03:33 GuestForm.java
-rw-r--r-- 1 thufir thufir 911 2008-05-24 03:33 MainFrame.form
-rw-r--r-- 1 thufir thufir 1363 2008-05-24 03:33 MainFrame.java
thufir@arrakis:~/bcit-comp2611-lab7$




thanks,

Thufir
 
G

Gotde T Shirt

Is there a switch of some sort for "dir" to recursively list directory
contents, from the terminal, as below from Linux?


thufir@arrakis:~/bcit-comp2611-lab7$
thufir@arrakis:~/bcit-comp2611-lab7$ ll src/ -R
src/:
total 4
drwxr-xr-x 6 thufir thufir 4096 2008-05-24 03:33 a00720398

src/a00720398:
total 12
drwxr-xr-x 3 thufir thufir 4096 2008-05-24 03:33 data
drwxr-xr-x 3 thufir thufir 4096 2008-05-24 03:33 labs
drwxr-xr-x 3 thufir thufir 4096 2008-05-24 03:33 ui

src/a00720398/data:
total 20
-rw-r--r-- 1 thufir thufir 209 2008-05-24 03:33 AddressFactory.java
-rw-r--r-- 1 thufir thufir 196 2008-05-24 03:33 Address.java
-rw-r--r-- 1 thufir thufir 235 2008-05-24 03:33 DataFactory.java
-rw-r--r-- 1 thufir thufir 232 2008-05-24 03:33 Data.java
-rw-r--r-- 1 thufir thufir 168 2008-05-24 03:33 Factory.java

src/a00720398/labs:
total 4
-rw-r--r-- 1 thufir thufir 672 2008-05-24 03:33 Lab7.java

src/a00720398/ui:
total 32
-rw-r--r-- 1 thufir thufir 11770 2008-05-24 03:33 GuestForm.form
-rw-r--r-- 1 thufir thufir 11909 2008-05-24 03:33 GuestForm.java
-rw-r--r-- 1 thufir thufir 911 2008-05-24 03:33 MainFrame.form
-rw-r--r-- 1 thufir thufir 1363 2008-05-24 03:33 MainFrame.java
thufir@arrakis:~/bcit-comp2611-lab7$




thanks,

Thufir

dir /? will show you the options available.
dir /s will include sub-directories
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top