LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-13-2004, 11:22 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
howto mv a set of subdirectories to an other directory?


the title basicaly says it all. some how i goofed and in the proccess of mv a few files around i moved my entire web page into one of its subdirectories. im trying to get things back to normal, but i have no clue how i mv a directory into an other?

things i have tried

Code:
mv * /var/www/html/*
that succeeded in moving all of the files around, but left the directories that belong in /var/www/html

now they are still in /var/www/html/video i want to move them all back to /var/www/html.

sorry for the really stupid newbie problem. i am very sure it is just a simple arg. that i am missing, or a lack of understanding the mv command.

thank you for the help.
 
Old 06-13-2004, 11:33 PM   #2
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
well i figured out a slow way to do it 1 directory at a time, but would still love a shortcut to moving all of those directories at 1 time. if there is such a way.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy 3 files to a directory and all subdirectories? snip128 Linux - Newbie 9 08-12-2005 09:18 PM
why can't the /bin directory contain subdirectories? learnfast Linux - Newbie 2 03-09-2005 11:31 AM
Copying all files from subdirectories into one directory Hegemon Linux - General 3 01-17-2005 11:25 AM
read directory and subdirectories skora Programming 3 10-27-2003 10:22 PM
How to know the property a directory include the files and subdirectories? Xiangbuilder Linux - Newbie 3 08-31-2003 05:48 AM


All times are GMT -5. The time now is 06:15 PM.

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