LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-17-2008, 09:22 PM   #1
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Rep: Reputation: 15
Talking mv command


i just want to ask.i have a file in home/me.how do i move it into the var/www/html/mysite in a single command?
 
Old 07-17-2008, 09:26 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 208Reputation: 208Reputation: 208
Code:
mv /home/me/<name of file> /var/www/html/<name of site>
 
Old 07-17-2008, 09:26 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Well, you pretty much wrote the command out in the sentence...

Code:
mv /home/filename /var/www/html/mysite
 
Old 07-17-2008, 09:28 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by nawuza View Post
i just want to ask.i have a file in home/me.how do i move it into the var/www/html/mysite in a single command?
If the 'mysite' directory doesn't exist then you need to create it first; otherwise if it's just a matter of renaming, you specify the path/name as the second argument to 'mv'.
 
Old 07-17-2008, 09:44 PM   #5
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Original Poster
Rep: Reputation: 15
owh...virtually i have write the code on my sentence.thanks a lot u guy for replying in a flash.

linux rocks!!!
 
Old 07-18-2008, 01:00 AM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
You are getting access denied because of the missing libraries. Default for everything in security is to deny. Can't find the library? Deny!

If you can do it, seems to me your best choice at this time is to copy the contents of /local to /lib. That will give you a LOT of duplication, but you'll have your system back under control, and you can worry later about how to clean up the duplicated mess.

This is where a current backup of the system partition comes in real handy.
 
Old 07-18-2008, 01:01 AM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
You also could just symlink (cp -l) all of /local into /lib. That would work. You would have a very non-standard installation, but it would work.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
My error in mkisofs command to make a command line iso mg92865 Linux - Newbie 1 06-20-2008 12:43 PM
startx command in FC7 reverts me back to the command prompt sriram87 Linux - Newbie 5 01-04-2008 12:18 AM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM


All times are GMT -5. The time now is 12:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration