If you want to save the output of all the commands and their results for the current session in a text file on the macOS, you can do that by simply pressing Command + S keys, this will open a prompt that will ask you where you want to save the file to.
You can achieve the same by going to the Terminal menu > Shell > Export text as... option.
If you do not want to save the complete text of the console, then just select the text you want to save and press Command + S or go to Menu > Shell > Export Selected text as...

macOS Terminal Export Text to File
Have Questions? Post them here!
More Posts related to MacOS,
- How to find files taking up space on your Mac
- How to open new tabs macOS Terminal
- Encode or Decode Base64 String using Mac Terminal Command
- How to take a screenshot on a Mac? (updated for macOS Monterey 2022)
- [macOS] NetBeans IDE cannot be installed. Java (JRE) found on your computer but JDK XX or newer is required.
- How to know your Mac Screen Resolution?
- How to make macOS Terminal window Transparent (or Opaque)
- [macOS] Change homepage Macbook Safari Browser
- Cut, Copy and Paste keyboard commands on mac
- Shutdown Mac Terminal Command
- Zsh Shell: Custom alias that you may find useful
- How to uninstall GarageBand from Mac
- How to Refresh Mac Desktop
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Right Click on Mac Desktop?
- How to remove app from Dock when closed [macOS Big Sur]
- How to display directory tree in Mac Terminal
- [Eclipse] Locate Preferences in macOS
- How to save webpage as pdf using macOS Safari
- Set Python 3.8 as a default python version on macOS
- 10 Beginners Commands for macOS Terminal Usage
- Display Seconds in Digital Clock on Mac Menu Bar [macOS]
- [Solution] macOS Big Sur Installation: There is not enough free space, Additional Space Required
- How to search (find) in macOS Terminal Console Text
- How to come out of dquote prompt in Terminal - macOS/Linux
More Posts:
- What is CA FE BA BE 00 00 00 3D in Java Class Bytecode - Java
- Common Microsoft Teams sign in errors and how to fix - Teams
- Portable Notepad++ for windows - NotepadPlusPlus
- Twitch chat down, error loading data, content unavailable, streaming problem - News
- How to check if a port is in use using terminal [Linux or macOS] - MacOS
- How to enable Do Not Disturb mode for Notification Center in Mac OS X 10.10 Yosemite - Mac-OS-X
- Using Java 8 Month Enum with Examples - Java
- Change Android Toast background color - Android