Difference between revisions of "IT-OS-Admin-macOS"
Jump to navigation
Jump to search
Samerhijazi (talk | contribs) (→Top Terminal Keyboard shortcuts) |
Samerhijazi (talk | contribs) (→Settings-A) |
||
| (21 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
=Ref.= | =Ref.= | ||
| + | *https://account.apple.com/ | ||
| + | *https://www.icloud.com/ | ||
| + | *https://checkcoverage.apple.com/?locale=de_DE | ||
*https://support.apple.com/en-gb/guide/terminal/trmlshtcts/mac | *https://support.apple.com/en-gb/guide/terminal/trmlshtcts/mac | ||
*https://support.apple.com/en-us/HT201236 | *https://support.apple.com/en-us/HT201236 | ||
*https://macos-defaults.com/finder/appleshowallfiles.html | *https://macos-defaults.com/finder/appleshowallfiles.html | ||
| + | |||
=MacOs-Tools= | =MacOs-Tools= | ||
* https://bentoboxapp.com/ | * https://bentoboxapp.com/ | ||
| Line 18: | Line 22: | ||
=Top Terminal Keyboard shortcuts= | =Top Terminal Keyboard shortcuts= | ||
* https://support.apple.com/guide/terminal/welcome/mac | * https://support.apple.com/guide/terminal/welcome/mac | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{| class="wikitable" | {| class="wikitable" | ||
! Action !! Shortcut | ! Action !! Shortcut | ||
| Line 54: | Line 44: | ||
| \ || ⇧ + ⌥ + 7 | | \ || ⇧ + ⌥ + 7 | ||
|- | |- | ||
| − | | | + | | | || ⌥ + 7 |
| + | |- | ||
| + | | <nowiki>|</nowiki> || ⌥ + 7 | ||
|- | |- | ||
| Force Quit || ⌥ + ⌘ + Esc | | Force Quit || ⌥ + ⌘ + Esc | ||
| Line 61: | Line 53: | ||
|- | |- | ||
| Move files || ⌘ + ⌥ + V | | Move files || ⌘ + ⌥ + V | ||
| + | |- | ||
| + | | Screenshot || ⌘ + ⇧ + 4 | ||
| + | |- | ||
| + | | Paste in Claude code || ⌃ + v | ||
|} | |} | ||
| Line 82: | Line 78: | ||
=brew= | =brew= | ||
| + | ==Top Command== | ||
| + | <pre class="code"> | ||
| + | brew update | ||
| + | brew upgrade | ||
| + | brew config | ||
| + | brew doctor | ||
| + | brew cleanup | ||
| + | brew uninstall "$APP" | ||
| + | brew uninstall --zap -f "$APP" | ||
| + | brew autoremove | ||
| + | brew cleanup --prune=all | ||
| + | </pre> | ||
| + | |||
<pre class="code"> | <pre class="code"> | ||
HOMEBREW_NO_INSTALL_CLEANUP=false | HOMEBREW_NO_INSTALL_CLEANUP=false | ||
| Line 89: | Line 98: | ||
brew link --force --overwrite openjdk@21 | brew link --force --overwrite openjdk@21 | ||
</pre> | </pre> | ||
| + | |||
==Uninstall all brew== | ==Uninstall all brew== | ||
<pre class="code"> | <pre class="code"> | ||
brew list | xargs brew uninstall --force | brew list | xargs brew uninstall --force | ||
brew list --cask | xargs brew uninstall --cask --force | brew list --cask | xargs brew uninstall --cask --force | ||
| + | </pre> | ||
| + | |||
| + | ==Mix brew== | ||
| + | <pre class="code"> | ||
| + | brew services start ollama | ||
| + | Or, if you don't want/need a background service you can just run: | ||
| + | OLLAMA_FLASH_ATTENTION="1" OLLAMA_KV_CACHE_TYPE="q8_0" /opt/homebrew/opt/ollama/bin/ollama serve | ||
</pre> | </pre> | ||
| Line 114: | Line 131: | ||
defaults write com.apple.TextEdit NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false | defaults write com.apple.TextEdit NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false | ||
----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ||
| + | defaults write com.apple.desktopservices DSDontWriteNetworkStores true | ||
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE | defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE | ||
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE | defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE | ||
Latest revision as of 10:23, 5 May 2026
Contents
Ref.
- https://account.apple.com/
- https://www.icloud.com/
- https://checkcoverage.apple.com/?locale=de_DE
- https://support.apple.com/en-gb/guide/terminal/trmlshtcts/mac
- https://support.apple.com/en-us/HT201236
- https://macos-defaults.com/finder/appleshowallfiles.html
MacOs-Tools
- https://bentoboxapp.com/
- https://www.theiphonewiki.com/wiki/Models
- https://www.theiphonewiki.com/wiki/Model_Regions
- https://support.apple.com/de-de/108044
- https://discussions.apple.com/thread/251748775?sortBy=rank
Icons
- ⇧ (Shift)
- ⌃ (Control)
- ⌥ (Option)
- ⌘ (Command)
Top Terminal Keyboard shortcuts
| Action | Shortcut |
|---|---|
| Show hidden files | ⌘ + ⇧ + . |
| New window | ⌘ + N |
| New tab | ⌘ + T |
| Move insertion point to the beginning | ⌃ + A |
| Move insertion point to the end | ⌃ + E |
| [ ] | ⌥ + 5 / ⌥ + 6 |
| { } | ⌥ + 8 / ⌥ + 9 |
| ~ | ⌥ + N |
| \ | ⇧ + ⌥ + 7 |
| | | ⌥ + 7 |
| | | ⌥ + 7 |
| Force Quit | ⌥ + ⌘ + Esc |
| Mark message as Read | ⌘ + T |
| Move files | ⌘ + ⌥ + V |
| Screenshot | ⌘ + ⇧ + 4 |
| Paste in Claude code | ⌃ + v |
Tools
diskutil list >>> List the partitions of a disk drutil list >>> Lists all connected burning devices. -------------------------------------------------------- diskutil list diskutil unmountDisk /dev/disk4 sudo dd if=./Fedora-Workstation-Live-43-1.6.x86_64.iso of=/dev/rdisk4 bs=4m status=progress
Xcode
xcodebuild -version xcode-select -p sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install
brew
Top Command
brew update brew upgrade brew config brew doctor brew cleanup brew uninstall "$APP" brew uninstall --zap -f "$APP" brew autoremove brew cleanup --prune=all
HOMEBREW_NO_INSTALL_CLEANUP=false HOMEBREW_NO_ENV_HINTS=true ############################################ brew list --versions openjdk@21 brew link --force --overwrite openjdk@21
Uninstall all brew
brew list | xargs brew uninstall --force brew list --cask | xargs brew uninstall --cask --force
Mix brew
brew services start ollama Or, if you don't want/need a background service you can just run: OLLAMA_FLASH_ATTENTION="1" OLLAMA_KV_CACHE_TYPE="q8_0" /opt/homebrew/opt/ollama/bin/ollama serve
Settings-A
- https://macos-defaults.com/
- https://lupin3000.github.io/macOS/defaults/
- https://marketmix.com/de/mac-osx-umfassende-liste-der-terminal-defaults-commands/
- https://git.herrbischoff.com/awesome-macos-command-line/about/
defaults read xxx.appName defaults write xxx.appName Setting -bool ture/false ----------------------------------------------------------------------------------------------- defaults write com.apple.Finder _FXSortFoldersFirst -bool true defaults write com.apple.Finder AppleShowAllFiles true defaults write com.apple.Finder PlayUserInterfaceSoundEffects -bool false ----------------------------------------------------------------------------------------------- defaults write com.apple.Terminal NSRequiresAquaSystemAppearance -bool no defaults write com.apple.Terminal NSRequiresAquaSystemAppearance -bool no ----------------------------------------------------------------------------------------------- defaults write com.apple.TextEdit NSRequiresAquaSystemAppearance -bool no defaults write com.apple.TextEdit NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false ----------------------------------------------------------------------------------------------- defaults write com.apple.desktopservices DSDontWriteNetworkStores true defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE ----------------------------------------------------------------------------------------------- defaults write com.apple.Dock defaults write com.apple.dock "orientation" -string "bottom" && killall Dock ----------------------------------------------------------------------------------------------- defaults write -g NSRequiresAquaSystemAppearance -bool Yes defaults write -g NSRequiresAquaSystemAppearance -bool No ----------------------------------------------------------------------------------------------- sudo spctl –master-disable ### open from the unidentified developer osascript -e 'id of app "Terminal"' ----------------------------------------------------------------------------------------------- killall Finder
Setting-B
sudo xattr -d com.apple.quarantine ./FileName.dmg
SecureDrive
hdiutil create -encryption AES-256 -size 500m -fs exFAT -volname "SecureDrive" ~/SecureDrive.dmg hdiutil create -encryption AES-256 -size 500m -fs APFS -volname "SecureDrive" ~/SecureDrive.dmg hdiutil create -type SPARSEBUNDLE -encryption AES-256 -size 500m -fs APFS -volname "SecureDrive" ./SecureDrive.sparsebundle ------------------------------------------ hdiutil attach ./SecureDrive.dmg hdiutil detach /Volumes/SecureDrive hdiutil detach /Volumes/SecureDrive -force