- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: directory structure
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 09:21 PM
12-17-2001 09:21 PM
directory structure
I need some help on this..
I need to list all the directory trees inside a directory...Is there any command combination to get this... I want to copy the structure to another environment...
thanks in advance..
bernard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 09:29 PM
12-17-2001 09:29 PM
Re: directory structure
# find . -type d -print
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 10:03 PM
12-17-2001 10:03 PM
Re: directory structure
You need to change directory to the tree
that you wish to start.
# find . -type d -print >/tmp/dir.out
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:01 PM
12-17-2001 11:01 PM
Re: directory structure
tar cf -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:24 PM
12-17-2001 11:24 PM
Re: directory structure
if it only about copying a directory-tree, why not using "rcp -rp SOURCE TARGET", where SOURCE and TARGET are in the form of "[host:]directory"?
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:28 PM
12-17-2001 11:28 PM
Re: directory structure
If you are interested in copying the directory structure only, and not the files then this may help -
find
Thanks,
Suhas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 02:07 AM
12-18-2001 02:07 AM
Re: directory structure
A nice routine from JRF :-
# dtree : print a hierarchy tree starting at specified directory
# (.default)
(cd ${1-.};pwd);
find ${1-.} -type d -print | sort -f | sed -e "s,^${1-.},," -e "/^$/d" -e "s,[^/
]*/\([^/]*\)$,\`-------\1," -e "s,[^/]*/,| ,g"
#
HTH
Paula