how to see all the subdirectories easily?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to see all the subdirectories easily?
# 1  
Old 04-15-2008
how to see all the subdirectories easily?

Suppose I have two directories a and b. Each directory has a few subdirectories, a1 a2 a3 and b1, b2, b3 respectively.

Using ls, I can see a and b. Then I need cd a, ls, cd ../b, ls to see all the subdirectories.

How to see all the directories and subdirectories easily, say using just one command?
# 2  
Old 04-15-2008
Use the find command.
# 3  
Old 04-15-2008
Did you try:

Code:
ls -R

Or you want to list only the direcotries?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Linux

How to easily identify socket given a PID on Linux?

I have the PID of a process running on Linux mymac 2.6.18-417.el5 #1 SMP Sat Nov 19 14:54:59 EST 2016 x86_64 x86_64 x86_64 GNU/Linux I need to get the ip & port i.e socket details of the given PID (32752). Based on a suggestion on my other thread i tried bash-3.2$ netstat -anpt | grep... (8 Replies)
Discussion started by: mohtashims
8 Replies

2. What is on Your Mind?

STILL can't buy a Linux PC easily

A few years ago, Dell announced they were selling PCs with Linux (Ubuntu) preinstalled or with no OS installed. It was about time! So a couple years ago I bought the Inspiron 1525n laptop that I'm typing this on with Ubuntu preinstalled. Yea! (Though I immediately wiped Ubuntu and installed... (7 Replies)
Discussion started by: KenJackson
7 Replies

3. HP-UX

[Solved] Howto change subdirectory easily using cd

Hi all, how to change the path easily from /u01/oracle/oradata/newdb/tab >cd olddb /u01/oracle/oradata/olddb/tab > or /u01/oracle/oradata/newdb/tab >cd u05 /u05/oracle/oradata/newdb/tab > I am lazy for typing the abs. path again... As I know there is some "tips" in doing this. ... (2 Replies)
Discussion started by: freddy1228
2 Replies

4. Fedora

Unix which can easily boot from a DVD

Hi, Really sorry if this is in the wrong place etc but I really need some big time newbie help :o I am a recent Maths graduate and have been invited to a 4 day job interview/assessment where I will be taught and tested on the following: "Fedora UNIX, Bash Scripting". Having no experience... (8 Replies)
Discussion started by: Rich147
8 Replies

5. UNIX for Advanced & Expert Users

How Can I Easily Determine If A File Has been Added to a Directory

I am uploading files that need to be processed prior to uploading. I will put the files in a directory. My question is how can I write an easy process to kick off a script once a file has been added? Is there an easy way to determine if a file has been added to a directory? Thanks (7 Replies)
Discussion started by: goodmis
7 Replies

6. UNIX for Dummies Questions & Answers

How Can I Easily Determine If A File Has been Added to a Directory

I am uploading files that need to be processed prior to uploading. I will put the files in a directory. My question is how can I write an easy process to kick off a script once a file has been added? Is there an easy way to determine if a file has been added to a directory? Thanks (1 Reply)
Discussion started by: goodmis
1 Replies

7. Shell Programming and Scripting

How to generate a configuration file easily and effectively?

Hello Unix Gurus, I have a query , like how to generate a configuration file easily using unix shell scripts?, I have set of parameters (based on the test that user wishes to run) for which user needs enter their input, so that a config file gets generated based on their input before running... (0 Replies)
Discussion started by: sarathytcs
0 Replies

8. UNIX for Advanced & Expert Users

Change password script in Unix easily..

I have more than 50 server unix's password need to change, usually I assign one password for all hosts, for easy remember, but I need to change password every two months..it's very tried to change password every 2 months, is there any unix script that can change password easily? ie ' script... (4 Replies)
Discussion started by: zp523444
4 Replies
Login or Register to Ask a Question