What Type of Computer Do You Have?
$ cat /sys/devices/virtual/dmi/id/board_name Prints the type of computer you have. I think this should be used more in distros and other applications because it is so easy to get. This can also be...
View ArticleReboot as a different OS in Grub
$ echo "savedefault --default=2 --once" | grub --batch; sudo reboot This will reboot as the Grub 2 option. View this command to comment, vote or add to favourites View all commands by matthewbauer Diff...
View ArticleGet iPhone OS firmware URL (.ipsw)
$ get-ipsw(){ curl -s -L http://phobos.apple.com/version | sed -rn "s|[\t...
View ArticleSave your open windows to a file so they can be opened after you restart
$ wmctrl -l -p | while read line; do ps -o cmd= "$(echo "$line" | awk '$0=$3')"; done > ~/.windows This will save your open windows to a file (~/.windows). To start those applications: cat...
View ArticleVisit wikileaks.com
$ echo 213.251.145.96 wikileaks.com | sudo tee -a /etc/hosts This one is a little bit easier for those of us that aren't always root. View this command to comment, vote or add to favourites View all...
View Article