Skip to content

A collection of rarely used commands to get things done

Notifications You must be signed in to change notification settings

simprecicchiani/How-to-macOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

T460s macOS

How to macOS

Should you find an error or improve anything please consider opening an issue or pull request.
If you find my work useful, please consider donating via PayPal. It would mean a lot to me.
donate

A collection of useful command that are rarely used (maybe once a year or for fresh OS installations) and so, hardly remembered.

This is not a beginners guide. These commands want to help medium/high experienced users that need more control over basic system settings.

⌘+F anything you need!

Reset Launchpad Layout

defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock

Delete all .DS_Store files on your computer

If you want to set defaul view in fider, this will be applied to new visited directories only. By deleting all .DS_Store files, every directory history will be deleted as well.

sudo find / -name .DS_Store -delete; killall Finder

Mount Root Partition with Read and Write permissions

sudo mount -uw /

Install Homebrew package manager

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install updated Bash and set as default shell for Terminal Homebrew

brew update && brew install bash && sudo chsh -s /usr/local/bin/bash $(whoami)

Speed-up dock's animation

defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -float 0.5; killall Dock

Jump through page sections by clicking on the scrollbar

defaults write -globalDomain AppleScrollerPagingBehavior -bool true

Show all filename extensions

defaults write NSGlobalDomain AppleShowAllExtensions -bool true

Hide warning before changing a file's extension

defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

Allow quitting Finder via ⌘ + Q

Enable closing finder unless is the only app running. Once closed the desktop icons will not be visible

defaults write com.apple.finder QuitMenuItem -bool true

Delete Time Machine snapshots

List all snapshots

tmutil listlocalsnapshots /

delete snapshot

sudo tmutil deletelocalsnapshots "insert-date-here"

About

A collection of rarely used commands to get things done

Resources

Stars

Watchers

Forks