User Tools

Site Tools


code:terminalcmds

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
code:terminalcmds [2022/02/27 21:50] michfielcode:terminalcmds [2025/09/21 15:26] (current) michfiel
Line 1: Line 1:
 ===== Useful Terminal Commands ===== ===== Useful Terminal Commands =====
  
 +Update macOS:
 +  sudo softwareupdate
 +  
 Mute Startup Sound: Mute Startup Sound:
   sudo nvram StartupMute=%01   sudo nvram StartupMute=%01
Line 39: Line 42:
  
   killall -u $USER cfprefsd   killall -u $USER cfprefsd
 +  
 +Unlock folder and all files therein:  
 +
 +  chflags -R nouchg /PATH/TO/DIRECTORY/WITH/LOCKED/FILES/
 +
 +
 +Enable Screen Sharing
 +  sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false
 +  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
 +
 +Remove all files from git cache
 +  git rm -r --cached .
 +  git add .
 +  git commit -m ".gitignore is now working"
 +
code/terminalcmds.1645995003.txt.gz · Last modified: by michfiel