Create zip of folder with same name

view story

http://askubuntu.com – 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? (HowTos)