Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-23-2008, 12:28 AM   #1
Registered: Mar 2008
Location: Bangalore
Distribution: Enterprise Red Hat linux
Posts: 98

Rep: Reputation: 16
Smile removeing the files but tree structure should be same

suppose there is a tree structure in my file system . i want to maintain the tree structure but the file in the structure is be erased.
i am putting my full idea's in it . so could be it possible, maintaing the structure by removing the files only???
Old 03-23-2008, 06:57 AM   #2
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
find / ! -type d -delete

But why one needs to remove all files from filesystem tree remaining its structure?


file, structure

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
any ideas to improve search performance in a tree structure George2 Programming 9 06-09-2006 05:49 AM
Perl/Linux: Syncronize tree structure on network kenneho Programming 1 11-04-2005 05:42 AM
Configuring the tree structure of a web server with apache2?? AQG Linux - Software 7 06-30-2005 04:47 PM
Preserving directory tree structure /etc/fstab Hikito Linux - Newbie 1 09-11-2004 05:07 PM
Recommendation for webpage tree structure Alan Powell Linux - Newbie 1 04-06-2004 03:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration