- How to use macOS Recovery
- The Quickest Way to Show/Hide Hidden Files
- Prevent Future .DS_Store Files (Optional)
- Modify text files via terminal
- Modify text files via Nano
π Apple Support β macOS Recovery : π https://support.apple.com/en-eg/HT204904
| Shortcut | Function |
|---|---|
| Command (β) + R | Install the latest macOS that was installed on your Mac (without upgrading). |
| Option (β₯) + Command (β) + R | Upgrade to the latest macOS compatible with your Mac. |
| Shift (β§) + Option (β₯) + Command (β) + R | (Requires macOS Sierra 10.12.4 or later) Install the macOS that came with your Mac, or the closest available version. |
The Quickest Way to Show|Hide Hidden Files
π Since the release of macOS Sierra, when in Finder, it is now possible to use the shortcut:
CMD + SHIFT + .For macOS, run this command to stop creating .DS_Store files on network drives:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true* Open File for edit
$ vi filepath| Mode | Shortcut |
|---|---|
| Insert Mode | Press i to enter insert mode. |
| Command Mode | Press Esc to return to command mode. |
To enter command mode, press Esc, then type : (colon).
The cursor will go to the bottom of the screen at a colon prompt. to write your command
Common commands:
:w # Save file
:q # Quit
:wq # Save and quit
:wq! # Force save and quit
:q! # Quit without saving
ZZ # Save and exit (shortcut)
Press Ctrl + O to write (save) the file. Nano will ask for a file name. Just press Enter to confirm (it will save to the same file). After saving, press Ctrl + X to exit Nano.