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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 05-10-2009, 11:56 PM   #1
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9
Thanked: 0
terminal command to move a file to another directory


[Log in to get rid of this advertisement]
What is the command to move a zip file from /home/vipjag2/Desktop to /opt/lampp/htdocs/joomla15?
vipjag2 is offline  
Tag This Post
Reply With Quote
Old 05-11-2009, 12:09 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva Spring 2009.1 / PClinuxOS 2009 / PCLXDE 2009
Posts: 3,560
Thanked: 84
Quote:
Originally Posted by vipjag2 View Post
What is the command to move a zip file from /home/vipjag2/Desktop to /opt/lampp/htdocs/joomla15?
sudo mv /home/vipjag2/Desktop/<name of zipfile here> /opt/lampp/htdocs/joomla15
{BBI}Nexus{BBI} is offline     Reply With Quote
Thanked by:
Old 05-11-2009, 09:40 PM   #3
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9
Thanked: 0

Original Poster
terminal command to move a file to another directory

Thanks. I moved the zipfile but I get a message saying I don't have permission to extract the zipfile in the current directory. The zipfile is Joomla_1.5.10-Stable-Full_Package.zip
vipjag2 is offline     Reply With Quote
Old 05-11-2009, 09:49 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 18,846
Blog Entries: 1
Thanked: 160
And what are the perms on the directory where you're tying to extract it?



Cheers,
Tink
Tinkster is offline     Reply With Quote
Thanked by:
Old 05-11-2009, 09:51 PM   #5
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Ubuntu
Posts: 82
Thanked: 2
Quote:
Originally Posted by vipjag2 View Post
Thanks. I moved the zipfile but I get a message saying I don't have permission to extract the zipfile in the current directory. The zipfile is Joomla_1.5.10-Stable-Full_Package.zip
do a sudo before you unzip.
cynicalpsycho is offline     Reply With Quote
Thanked by:
Old 05-11-2009, 10:19 PM   #6
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9
Thanked: 0

Original Poster
terminal command to move a file to another directory

The directory permissions won't let me run executables as program because I am not the owner.How can I change to be the owner? How do I unzip the sipfile from the command line? Thanks for your help.
vipjag2 is offline  
Tag This Post ,
Reply With Quote
Old 05-11-2009, 10:37 PM   #7
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva Spring 2009.1 / PClinuxOS 2009 / PCLXDE 2009
Posts: 3,560
Thanked: 84
Quote:
Originally Posted by vipjag2 View Post
The directory permissions won't let me run executables as program because I am not the owner.How can I change to be the owner? How do I unzip the sipfile from the command line? Thanks for your help.
Code:
sudo unzip <name of zipfile>
If you want to take ownership of the directory and it's contents do:
Code:
sudo chown -R <username>:<username> <directory name>
{BBI}Nexus{BBI} is offline     Reply With Quote
Thanked by:
Old 05-11-2009, 11:37 PM   #8
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9
Thanked: 0

Original Poster
terminal command to move a file to another directory

I was able to unzip file. Thanks everyone! Consider this thread SOLVED!
vipjag2 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Move file and change directory in one command Ztyx Linux - General 8 02-19-2009 05:09 AM
Can you move a file or directory and still retain mtime? ddenton Linux - General 3 11-21-2008 05:54 PM
Why won't it let me copy or move a file from one directory to another? dewjunkie Linux - Newbie 4 01-23-2008 01:31 AM
how do i get permission to move file into directory timalan Suse/Novell 2 08-24-2005 10:25 PM
Is it possible to move file from /dev to other directory? raindrop Linux - Hardware 2 11-13-2002 06:37 PM


All times are GMT -5. The time now is 11:29 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration