LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2009, 11:56 PM   #1
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Rep: Reputation: 0
terminal command to move a file to another directory


What is the command to move a zip file from /home/vipjag2/Desktop to /opt/lampp/htdocs/joomla15?
 
Old 05-11-2009, 12:09 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
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
 
Old 05-11-2009, 09:40 PM   #3
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 05-11-2009, 09:49 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
And what are the perms on the directory where you're tying to extract it?



Cheers,
Tink
 
Old 05-11-2009, 09:51 PM   #5
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 16
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.
 
Old 05-11-2009, 10:19 PM   #6
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 05-11-2009, 10:37 PM   #7
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
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>
 
Old 05-11-2009, 11:37 PM   #8
vipjag2
LQ Newbie
 
Registered: Apr 2009
Location: new york
Distribution: ubuntu 8.10
Posts: 9

Original Poster
Rep: Reputation: 0
terminal command to move a file to another directory

I was able to unzip file. Thanks everyone! Consider this thread SOLVED!
 
  


Reply

Tags
commandline, permissions


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
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 07:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration