LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   terminal command to move a file to another directory (http://www.linuxquestions.org/questions/linux-newbie-8/terminal-command-to-move-a-file-to-another-directory-725098/)

vipjag2 05-10-2009 10:56 PM

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?

{BBI}Nexus{BBI} 05-10-2009 11:09 PM

Quote:

Originally Posted by vipjag2 (Post 3536599)
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

vipjag2 05-11-2009 08:40 PM

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

Tinkster 05-11-2009 08:49 PM

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



Cheers,
Tink

cynicalpsycho 05-11-2009 08:51 PM

Quote:

Originally Posted by vipjag2 (Post 3537688)
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.

vipjag2 05-11-2009 09:19 PM

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.

{BBI}Nexus{BBI} 05-11-2009 09:37 PM

Quote:

Originally Posted by vipjag2 (Post 3537719)
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>

vipjag2 05-11-2009 10:37 PM

terminal command to move a file to another directory
 
I was able to unzip file. Thanks everyone! Consider this thread SOLVED!


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