If you are running a command or a script on the Mac Terminal and you want to know how to stop/terminate the execution and come back to your prompt then you can press Control + Z keys on your Mac keyboard.
Let's take an example where we ran a ping command, and want to stop it, just pressing Control + Z stops the execution as shown below.
Code2care@Mac % ping code2care.org PING code2care.org (188.8.131.52): 56 data bytes 64 bytes from 184.108.40.206: icmp_seq=0 ttl=58 time=9.099 ms ... 64 bytes from 220.127.116.11: icmp_seq=4 ttl=58 time=15.527 ms 64 bytes from 18.104.22.168: icmp_seq=5 ttl=58 time=12.931 ms ^Z zsh: suspended ping code2care.org
The ^Z characters appear on the screen and the command got suspended.
Facing issues? Have Questions? Post them here! I am happy to answer!
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
- Fix: Python IndentationError: unexpected indent - Python
- Android Emulator Soft Back button action using Computer keyboard - Android
- Fix: ModuleNotFoundError: No module named requests - Python
- [fix] Java NullPointerException ComparableTimSort countRunAndMakeAscending when sorting a List - Java
- Add scroll to div element in HTML Css - CSS
- Best free Decompiler for Java - Java
- Add or remove users from sudo group - Ubuntu - Ubuntu
- Add Blank Lines Between Each Lines in Notepad++ - NotepadPlusPlus