LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2011, 07:40 AM   #1
nicksonrulez
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Rep: Reputation: 0
how to mass move files?


I downloaded wordpress from wordpress.org. Unzipped it in /var/www using "unzip wordpress.org".

Now, the problem is, every file is under /wordpress directory. So structure look like:

/var/www/wordpress

I want every file under /wordpress to be moved to /www. How can i do that?

its a CENTOS server.
 
Old 08-20-2011, 07:52 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Code:
shopt -s dotglob
cd /var/www/wordpress
mv * ../
shopt -u dotglob
.. sorry, got a bit trigger-happy, borrowed 'dotglob' from colucix: see here

Last edited by kbp; 08-20-2011 at 08:03 AM.
 
1 members found this post helpful.
Old 08-20-2011, 08:04 AM   #3
nicksonrulez
LQ Newbie
 
Registered: Nov 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
Code:
shopt -s dotglob
cd /var/www/wordpress
mv * ../
shopt -u dotglob
.. sorry, got a bit trigger-happy, borrowed 'dotglob' from colucix: see here
Thanks. That helped.
 
  


Reply



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
[SOLVED] Extremely slow to move files to trash and/or delete files permanently... CT_0000 Linux - Newbie 2 01-09-2014 10:06 AM
Creating a script to move or copy files into multiple directories below the files matthes138 Linux - Newbie 5 08-25-2009 04:57 PM
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
After a piece of software/a bash script to mass-move files [Fedora Core 6] Alux Linux - Desktop 3 11-23-2006 02:33 PM
LXer: Mass move of Welsh schools to Open Source e-mail LXer Syndicated Linux News 0 09-04-2006 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration