6 interesting terminal commands on Mac

Terminal is a handy utility, often found on UNIX-based computers, such as Linux and macOS. There are many interesting things to do in the Terminal. Regardless of your experience, you can use these great Terminal commands on Mac.

Terminal is a handy utility, often found on UNIX-based computers, such as Linux and macOS. In it, you can type commands for your computer to perform certain tasks. If you're familiar with Windows, you'll find that Terminal works very similar to Command Prompt or PowerShell.

There are many interesting things to do in the Terminal. Regardless of your experience, you can use these great Terminal commands on your Mac.

1. Play old games

macOS comes with GNU Emacs, a text editor that is part of the GNU operating system. You can access it via Terminal.

To start playing the game, just follow these steps:

  1. Open Terminal.
  2. Enter emacs and press Return .
  3. Hold down Fn and press F10 .
  4. Use the up / down arrow keys or press the T key to select Tools.
  5. Again, use the up / down arrow keys or press the G key to select Games.
  6. Select a game from the Terminal list using the up / down arrow keys or enter the corresponding hotkey. The list of games includes:
    1. 5 × 5
    2. Blackbox
    3. Towers of Hanoi
    4. Multiplication Puzzle
    5. Solitaire
    6. Zone Out
    7. Adventure
    8. Gomoku
    9. Life
    10. Snake
    11. Tetris

If you want to exit the game, use the key combination Ctrl + X followed by Ctrl + C

6 interesting terminal commands on Mac Picture 16 interesting terminal commands on Mac Picture 1
Play old games

2. See ASCII Star Wars in Terminal

Amazingly, you can watch Star Wars: Episode IV - A New Hope (Star Wars: Part IV): New Hope) in ASCII Art. You will need a direct Internet connection to do this.

6 interesting terminal commands on Mac Picture 26 interesting terminal commands on Mac Picture 2
See ASCII Star Wars in Terminal

If you have an IPv6 address, some scenes will be slightly different. When you are ready, open the Terminal. Depending on your macOS version, enter one of the two commands:

  1. For macOS Sierra and above:
 nc towel.blinkenlights.nl 23 
  1. For macOS versions older than Sierra:
 telnet towel.blinkenlights.nl 

3. Talk to Terminal

If you have a lot of free time but no one is around, you can 'chat' with the Terminal.

Just type:

 say (Chèn văn bản vào đây, không cần dấu ngoặc đơn) 

You can type any text you want after the prompt and Terminal will say it for you. As one of the simplest tricks, it's a great Terminal command to prank others.

If you like, you can even customize your voice by going to System Preferences> Accessibility> Speech and selecting your preferred voice.

4. See a therapist

If you're happy using the Terminal to talk to yourself, try another great Terminal command. This will allow you to participate in a more active session.

If you are under stress at work, the Terminal can serve as a free alternative to an actual therapist.

To consult Emacs' virtual psychologist, follow these steps:

  1. Launch Terminal.
  2. Enter emacs and press Return .
  3. Press and hold the Shift key, then press Esc .
  4. Press the X key.
  5. Enter the doctor and press Return .
  6. Enter what you want to say and press Return twice.

Let the conversation go on until you want to finish.

5. Get weather forecasts

While some other interesting Mac Terminal commands are silly, this one is really helpful. If you want a three-day forecast on local weather conditions, you don't need to open your browser.

To display local forecasts, simply open Terminal and type:

 curl http://wttr.in/ 

You immediately receive an analysis of the weather conditions in the morning, afternoon, evening and night, plus the current weather situation.

6 interesting terminal commands on Mac Picture 36 interesting terminal commands on Mac Picture 3
Get weather forecasts

6. Endless text box

As with the 'say' prompt mentioned above, the simplest commands in Terminal make great jokes. If you've ever wanted to surprise someone on their Mac, try taking advantage of the yes command. This causes the Terminal to emit the same sequence over and over again until you tell it to stop.

Before you do this, you should know that the yes command uses a lot of computer CPU. It exports text so quickly that it consumes all the available resources. So please consider carefully when used.

To use yes , follow these simple steps:

  1. Open Terminal.
  2. Type yes followed by a word or sentence (e.g. yes Are you scared? ) And press Enter .
  3. Enjoy prank results.
  4. Press Ctrl + C to stop the process.
4.8 ★ | 4 Vote