I\'d like to define an alias that runs the following two commands consecutively.
gnome-screensaver gnome-screensaver-command --lock
Right
Adding my 2 cents to the 11 year old discussion try this:
alias lock="gnome-screensaver \gnome-screensaver-command --lock"