Introduction: Mac Terminal Extra Features
This instructable will show you some fun and helpful things to do with your macs Terminal application.
Terminal can be accesed by going to Applications>Utilities>Terminal
Step 1: Star Wars
Open Terminal, Copy and paste this in (telnet towel.blinkenlights.nl) and press enter.
Hold enter to fast forward
Enjoy Starwars text edition
Step 2: Speaking Terminal
Type in (say [fill text here] ) and press enter:
E.G. - say Hello my name is mac
Type "say -f /path/to/file.txt" to make your mac read a certain text file
If you do further research you can set up pranks using this.
Step 3: Games
Open Terminal --->
Type "emacs" --->
Press Escape ---->
Press X ----->
Type in the name of the game you want to play --->
Press enter and the game immediately starts.
List Of Common Games:
tetris, pong, snake, solitaire, gomoku, 5x5, dunnet, landmark, doctor
You can find more by typing in terminal --> ls /usr/share/emacs/22.1/lisp/ play
animate -- animates text in fun phrases dissociate -- mix up the current text doctor -- diagnose any problem landmark -- a neural-network robot life -- pattern generator based on the "game of life" algorithm morse -- convert the text to morse code spook -- output random spy terms yow -- returns the same line every time, used to output more. zone -- text in the emacs buffer will slowly disintegrate and fall downwards
Step 4: Dock Magnification
Have magnification on in dock preferences >
Type this in terminal "defaults write com.apple.dock largesize -int 512; killall Dock" >
Press enter - Dont go bigger than 512 >
To go back to default, move the slider in dock preferences
Step 5: Details and Other Things
Type "uptime" in terminal to display how long your mac has been on
Type "sudo shutdown -r now" to restart your mac
Type "sudo shutdown -h now" to shut down your mac
Type "sudo shutdown -r +60" where +60 is a time delay, to shut down your mac after a certain time
Type "caffeinate -u -t 600" to stop your computer from falling asleep for a certain time (600 seconds this would be)
Type "banner [Text]
Make Your mac Sing > type [sudo osascript -e 'say "Dum dee dum dee dum dum dum dee dee dee lah lah lo fa lah lah lah lah lah lah fa lah dee doo dee doo" using "Cellos"']
It may ask you to type your password
Pressing Ctrl + C will stop the current operation.