Article 5E7J9 curl and unzip/delete zip on ubuntu 20.04 server

curl and unzip/delete zip on ubuntu 20.04 server

by
jrb0031
from LinuxQuestions.org on (#5E7J9)
change in tact..

kindly seeking expertise to clean up the below code into something useful..

Code:mkdir /dev/sda2 slop
curl -o slop.zip <INSERT URL> /dev/sda2 slop
unzip slop.zip -d /dev/sda2 slop
rm -f slop.ziptrying to make a directory "slop" in sda2, download a zip from https source, unzip contents to "slop", and delete the zip..

desired end state being able to use "./startserver.sh" to get a mc server running on my RPi4..

for anyone interested, server source: https://www.curseforge.com/minecraft...wnload/3195280

lsblk below:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 48.9M 1 loop /snap/core18/1949
loop1 7:1 0 48.9M 1 loop /snap/core18/1990
loop2 7:2 0 61.7M 1 loop /snap/lxd/19206
loop3 7:3 0 61.6M 1 loop /snap/lxd/19040
loop4 7:4 0 27M 1 loop /snap/snapd/10709
loop5 7:5 0 27M 1 loop /snap/snapd/11043
sda 8:0 0 465.8G 0 disk
sda1 8:1 0 256M 0 part /boot/firmware
sda2 8:2 0 465.5G 0 part /latest?d=yIl2AUoC8zA latest?i=4gDb20oR4Us:vQLK-7fqOH8:F7zBnMy latest?i=4gDb20oR4Us:vQLK-7fqOH8:V_sGLiP latest?d=qj6IDK7rITs latest?i=4gDb20oR4Us:vQLK-7fqOH8:gIN9vFw4gDb20oR4Us
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments