I'd like to define an alias that runs the following two commands consecutively.
gnome-screensaver
gnome-screensaver-command --lock
Right now I've added
alias lock='gnome-screensaver-command --lock'
to my .bashrc but since I lock my workstation so often it would be easier to just type one command.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…