Streamlining the process of uploading
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.
Walk away, come back, bulk upload files, Done
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.
Code:
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.zip $x;done;mkdir filestoupload;mv *.zip filestoupload/;chown -R sam\: filestoupload
Total Comments 0