A photo of Mitesh Shah

Mitesh Shah

Linux Expert | Automation Enthusiast | Security Consultant

Email Skype Github Twitter Resume Hire Me Keybase LinkedIn Stackoverflow


OS X Tips and Tricks

Overview

General

Computer Name

# Get Computer Name
[mitesh@Matrix ~]$ scutil --get ComputerName
# Set Computer Name
[mitesh@Matrix ~]$ sudo scutil --set ComputerName "MiteshShah"

HostName

# Get HostName
[mitesh@Matrix ~]$ scutil --get HostName
# Set HostName
[mitesh@Matrix ~]$ sudo scutil --set HostName "MiteshShah"

LocalHostName

# Get LocalHostName
[mitesh@Matrix ~]$ scutil --get LocalHostName
# Set LocalHostName
[mitesh@Matrix ~]$ sudo scutil --set LocalHostName "MiteshShah"

Change NetBIOSName

# Get NetBIOSName
System Preferences > Network > Advanced > WINS
# Set NetBIOSName
[mitesh@Matrix ~]$ sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "MiteshShah"

Expand Save Panel

[mitesh@Matrix ~]$ defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

Finder

NOTE!: Restart Finder Application is required after making following changes.

Finder Quite via ⌘ + Q

[mitesh@Matrix ~]$ defaults write com.apple.finder QuitMenuItem -bool true

Show Hidden Files

[mitesh@Matrix ~]$ defaults write com.apple.finder AppleShowAllFiles -bool true

Show Path Bar

[mitesh@Matrix ~]$ defaults write com.apple.finder ShowPathbar -bool true

Display POSIX Path in Windows Title

[mitesh@Matrix ~]$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool true

Disable Warning When Change File Extension

[mitesh@Matrix ~]$ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

Empty Trash without any warning

[mitesh@Matrix ~]$ defaults write com.apple.finder WarnOnEmptyTrash -bool false

Empty Trash Securely

[mitesh@Matrix ~]$ defaults write com.apple.finder EmptyTrashSecurely -bool true




Post Navigation