If you want to find out all the parameters for a particular command,
you can read the user manual with the man command (or you can
often use the --help option):
pi@raspberrypi ~ $ man curl
pi@raspberrypi ~ $ rm --help
To make a new directory, use mkdir. To bundle all of the files in a
directory into a single file, use the tar command, originally created
for tape archives.
You’ll find a lot of bundles of files or source code are distributed as
tar files, and they’re usually also compressed using the gzip com-
mand. Try this:
pi@raspberrypi ~ $ mkdir myDir
pi@raspberrypi ~ $ cdmy Dir
pi@raspberrypi ~ $ touch foo bar baz
pi@raspberrypi ~ $ cd ..
pi@raspberrypi ~ $ tar -cf myDir.tar myDir
pi@raspberrypi ~ $ gzip myDir.tar
You’ll now have a .tar.gz archive