code:terminalcmds
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| code:terminalcmds [2017/04/21 16:14] – created michfiel | code:terminalcmds [2025/09/21 15:26] (current) – michfiel | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Useful Terminal Commands ===== | ===== Useful Terminal Commands ===== | ||
| - | Make Library | + | Update macOS: |
| + | sudo softwareupdate | ||
| + | |||
| + | Mute Startup Sound: | ||
| + | sudo nvram StartupMute=%01 | ||
| + | |||
| + | Erase Hard Disk: | ||
| + | diskutil eraseDisk JHFS+ empty / | ||
| + | |||
| + | Force rebuild of Finder Prefs: | ||
| + | mv ~/Library/ | ||
| + | Make Library Folder visible: | ||
| chflags nohidden ~/Library/ | chflags nohidden ~/Library/ | ||
| | | ||
| - | Cleanup Finder database | + | Cleanup Finder database: |
| / | / | ||
| - | Backup iPad on external disk (named "NoBackup") | + | Backup iPad on external disk (named "disk2s2"): |
| - | ln -s /Volumes/NoBackup/iTunes/Backup ~/ | + | ln -s /Volumes/disk2s2/Documents/ |
| - | Booting in verbose mode | + | Booting in verbose mode: |
| sudo nvram boot-args=”-v” | sudo nvram boot-args=”-v” | ||
| - | Show full path names in all Finder windows | + | Show full path names in all Finder windows: |
| defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES | defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES | ||
| - | Change date to March 18th 2013 12:50 for fooling older MacOS X Installers | + | Always use expanded save dialog: |
| + | |||
| + | defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE | ||
| + | |||
| + | Change date to March 18th 2013 12:50 for fooling older MacOS X Installers: | ||
| date 0318125013 | date 0318125013 | ||
| + | | ||
| + | Purge cached user preferences: | ||
| + | |||
| + | killall -u $USER cfprefsd | ||
| + | | ||
| + | Unlock folder and all files therein: | ||
| + | |||
| + | chflags -R nouchg / | ||
| + | |||
| + | |||
| + | Enable Screen Sharing | ||
| + | sudo defaults write / | ||
| + | sudo launchctl load -w / | ||
| + | |||
| + | Remove all files from git cache | ||
| + | git rm -r --cached . | ||
| + | git add . | ||
| + | git commit -m " | ||
code/terminalcmds.1492784079.txt.gz · Last modified: by michfiel
