I am new to ubuntu and I am trying to create a file to fix a suspend problem I have with my system. I have found the answer here as follows:
#!/bin/bash #Script kills autofs when going into standby to eliminate issues with it case $1 in suspend) #suspending to RAM chvt 1 echo "Going to sleep" sleep 1 ;; resume) #resume from suspend echo "try to resume" sleep 1 chvt 7 ;; esac
I just cannot work out how to create the file in terminal, if someone could give a me a step by step instruction that would be great!