LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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-10-2009, 11:09 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
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, 08: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, 08:49 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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



Cheers,
Tink
 
Old 05-11-2009, 08:51 PM   #5
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

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, 09: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, 09:37 PM   #7
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
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, 10: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 04:09 AM
Can you move a file or directory and still retain mtime? ddenton Linux - General 3 11-21-2008 04: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 12:31 AM
how do i get permission to move file into directory timalan SUSE / openSUSE 2 08-24-2005 09:25 PM
Is it possible to move file from /dev to other directory? raindrop Linux - Hardware 2 11-13-2002 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 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