I know this is a very simple question, but I'm still pretty new to Linux. I have a simple bash file script that sets proper resolution for my VM (1920x1080) in Linux Mint v18.1: #!/bin/bashxrandr --newmode 1920x1080  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync xrandr --addmode Virtual1 1920x1080xrandr --output Virtual1 --mode 1920x1080`Worth noting, I originally had this script living on my desktop, but I have since copied it to /etc/init.d/ but it still does not run without appending bash -x before ./script.sh Can anyone tell me why this is and what I can do to fix it?EDIT: Apologies everyone, rookie mistake. I was just attempting to run the script incorrectly (I blame PowerShell):noob_me@linux-mint$ .\reso.sh.reso.sh: command not foundOnce I ran it like so ./script.sh it works fine. Thanks, all. 
Why is bash -x required to make my script.sh bash file run?
shell script;linux mint