Linux 系统各类脚本
#! /bin/bash if [ -z "$1" ] then echo "Notice that there is no input para" exit 1 elif [ $1 == "shutdown" ] then sudo apt-get install -f sudo apt-get update sudo apt-get install ubuntu-desktop sudo reboot elif [ $1 == "pos" ] then xrandr --output DP-4 --auto --primary xrandr --output DP-1.3.8 --right-of DP-4 xrandr --output DP-1.3.1 --left-of DP-4 fi echo "Done!"