Review your favorite Linux distribution.
Go Back > Blogs > sag47
User Name


Rate this Entry

Streamlining the process of uploading

Posted 08-17-2010 at 11:21 AM by sag47
Updated 08-17-2010 at 11:24 AM by sag47

Today I had to zip up about 50 folders and upload them to a software directory for my work. That's a huge hassle and they didn't need to be in any particular order. The names of the zip files had to be the same name as the folder so that made my life easier. I zipped them all, moved them into a filestoupload folder and then uploaded them.

A process which would have taken 10-20 minutes on a Windows machine took less than a minute of my precious time on my Linux box. For most of it I could walk away and get other things done.

sudo bash #simulate root login, I hate the sudo command so I use it as little as possible
for x in `ls -w 1`;do zip -r $ $x;done;mkdir filestoupload;mv *.zip filestoupload/;chown -R sam\: filestoupload
Walk away, come back, bulk upload files, Done
Posted in Uncategorized
Views 1461 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 01:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration