6 interesting 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 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 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 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

May be interested

  • How to Customize Your Mac Using the TerminalHow to Customize Your Mac Using the Terminal
    this wikihow teaches you how to customize your mac computer using terminal commands. terminal is a command prompt program that comes on every mac computer and allows users to input detailed commands to customize the way the operating...
  • How to set Windows Terminal to always open with Command Prompt on Windows 11How to set Windows Terminal to always open with Command Prompt on Windows 11
    windows terminal is a great application on windows 11 for you to access operating system commands. windows terminal is a powerful all-in-one solution for programmers as well as professional users.
  • 5 best alternatives for Terminal application on macOS5 best alternatives for Terminal application on macOS
    the default terminal application on macos works very well, but it is not the only option available. whether you are looking for a new tool with more features, or a more customizable, more interesting application, there are many options.
  • How to Open a Terminal Window on MacHow to Open a Terminal Window on Mac
    today's tipsmake will show you how to open the terminal utility on a mac computer, where mac users will be able to access and adjust operating system settings based on text commands.
  • How to Open Apps Using Terminal on MacHow to Open Apps Using Terminal on Mac
    apple's terminal application provides a unix command line environment right on the os x operating system. here, you can enter commands to open applications, or open files with certain applications. there are many ways to adjust this command to suit user needs, including the ability to control the application right on the terminal window.
  • Navigation IO in Unix / LinuxNavigation IO in Unix / Linux
    most unix system commands receive input from your terminal and send the output back to your terminal. a command usually reads its input from a location called standard input, which happens to your terminal by default.
  • How to Open a Terminal Window in MacHow to Open a Terminal Window in Mac
    this wikihow teaches you how to open the terminal utility on mac, which provides mac users with a way to access and adjust settings of the operating system with text-based commands. click the finder icon in your dock. it's a square icon...
  • Make Terminal More Fun with These 8 Linux Tools!Make Terminal More Fun with These 8 Linux Tools!
    these tools will help you be more efficient, productive, and even have more fun working in terminal. let's take a look at some of our favorite command line tools!
  • Microsoft released Windows Terminal with many interesting advantagesMicrosoft released Windows Terminal with many interesting advantages
    in the framework of the ongoing build 2019 conference, microsoft has released official information about the new console for windows 10 in a more modern way, called windows terminal.
  • 7 commands to manipulate the most basic files and folders everyone must know7 commands to manipulate the most basic files and folders everyone must know
    on windows or linux operating systems, there are a number of things that users can only do with commands. in the following article, the network administrator will introduce you to the 7 most basic commands that any user must 'understand' to perform operations faster.