Pipe the output through grep to remove mention of uninteresting files, and sort to tidy it up, e.g.:ĭiff -qr dirA dirB | grep -v -e ‘DS_Store’ -e ‘Thumbs’ | This command will provide a nice list of files that occur in dirA but not in dirB, files that occur in dirB, but not in dirA, and files that differ between dirA and dirB. Example, diff -rq > ~/Desktop/comparison.txt Ĭlear font caches and databases: sudo atsutil databases -remove or get FontNukeĭiff lets you compare files or folders, diff file-1 file-2 or diff -rq folder-1 folder-2. ![]() MemTest cd /usr/bin, memtest all, CTRL C.Įnable Disk Utility’s debug menu defaults write DUDebugMenuEnabled 1 (change 1 to 0 to disable the debug menu)Ĭhflags hidden /FilePath or chflags no hidden or SetFile -a V filename.txt or use a. Run Disksweeper as root: sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeperĭisplay Free Disk Space df -hT hfs and its Man page: g GB Display block counts in 1073741824-byte (1-Gbyte) blocks. m MB Display block counts in 1048576-byte (1-Mbyte) blocks. k KB Display block counts in 1024-byte (1-Kbyte) blocks. d depth Display an entry for all files and folders depth folders deep. List files in a directory and output the list to a text file on the hard drive: ls > ~/list-of-files.txtĭisk Usage (this takes a while to run) sudo du -sh /* du man page: Some of my favorite options: Turn off Mail preview of attachments – defaults write DisableInlineAttachmentViewing -bool yes (or false)Ĭopy only email address in Mail – defaults write AddressesIncludeNameOnPasteboard -bool false (or no) Sudo launchctl load -w /System/Library/LaunchDaemons/.plist Spotlight:sudo mdutil -E / Or, more specifically, sudo mdutil -E /Volumes/Īlso try, sudo launchctl unload -w /System/Library/LaunchDaemons/.plist Ĭhange user in shell: su useful in Addigy malware clean-up If you just want to change to an admin user in Terminal type su. ![]() Elevated Shell Shell as actual root user sudo su.Īlternatively, sudo -s gives you elevated permissions but your home is still your home.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |