Multiple commands in an alias for bash

前端 未结 9 2004
[愿得一人]
[愿得一人] 2020-11-29 15:05

I\'d like to define an alias that runs the following two commands consecutively.

gnome-screensaver
gnome-screensaver-command --lock

Right

9条回答
  •  一整个雨季
    2020-11-29 15:25

    This would run the 2 commands one after another:

    alias lock='gnome-screensaver ; gnome-screensaver-command --lock'
    

提交回复
热议问题