Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adjusted few notes and added the items to MacOS only section:
Default Terminal in MacOS is
zsh. Although most of the commands listed in this guide will work just fine, please keep in mind somebashscripts may through errors or produce unexpected results.Copy output of any command to a file with
pbcopy < file.txtorcat file.txt | pbcopyPaste input from one with
pbpaste.Count items in clipboard:
pbpaste | wc -lStrip formatting from clipboard:
pbpaste | pbcopy.To reveal a folder in
Finder, pleae useopen -R /path/to/fileShow/hide hidden files in Finder:
defaults write com.apple.finder AppleShowAllFiles YES && killall Finder.Get detailed hardware info with
system_profilerandsystem_profiler SPHardwareDataType for Macspecs.Check battery status with
pmset -g battand power management settings withpmset -g.View system logs with
log showor stream them in real-time withlog stream.List all running applications with
osascript -e 'tell application "System Events" to get name of every process whose background only is false'.Force quit applications from terminal with
killall [AppName]orpkill.Flush DNS cache with
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.View active network connections with
netstat -anorlsof -i.Get current Wi-Fi network with
networksetup -getairportnetwork en0.Scan available Wi-Fi networks:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s.Hopefully, these are relevant to this wonderful guide.
There are many more that I would add there, but this requires complete section overhaul. Decided to start with something small first.
If approved will update Russian section as well.