0

I've googled this issue and I can't find anything.

I'm trying to zip the contents of my htdocs, and so far it's great, but the zipped file always saves in /home, which over times gets annoying.

$ zip derp.zip -r /opt/lampp/htdocs

How can I add onto the command to send the zipped file to /home/brackson/Desktop?

5
  • Just full path the name. aka /home/brackson/Desktop/derp.zip
    – Jason McD
    Oct 22, 2013 at 22:49
  • Have you tried zip /home/brackson/Desktop/derp.zip -r /opt/lampp/htdocs or alternatively, make sure your current directory is /home/brackson/Desktop before running the command?
    – Josh
    Oct 22, 2013 at 22:50
  • Can we all get a CheckMark =)
    – Jason McD
    Oct 22, 2013 at 23:12
  • Thanks Josh R. I would mark your answer as accepted, but I don't think that I can for comments. Oct 22, 2013 at 23:13
  • Take the chance and get the reward!!
    – Jason McD
    Oct 22, 2013 at 23:16

1 Answer 1

0

Try this:

zip /home/brackson/Desktop/derp.zip -r /opt/lampp/htdocs/*

Sources: http://linux.about.com/od/commands/l/blcmdl1_zip.htm
Experience

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .