50
rated 0 times
[
50]
[
0]
/ answers: 1 / hits: 51267
/ 2 Years ago, sun, november 6, 2022, 2:30:44
I want to create zip of a folder from command-line. I can do something like
zip -r folder.zip folder
. I want to give the zipped folder same name as the original folder. I can simulate this by writing a script:
#!/bin/bash
zip -r $1 $1
And then doing ./script folder
.
Is it possible to do this without writing any script?
More From » bash