Fulltext results:
- MacPorts
- = ===== List Ports ===== list requested ports: <code bash> port echo requested | cut -d ' ' -f 1 | uniq </code> list installed ports: <code bash> port -qv installed </code> ===== Housekeeping ===== When ports are updated, the old port is
- Command Line Audio
- ~~META:date created = 2009-06-19 16:17~~ ====== Command Line Audio ====== ===== Change Mac Audio Volume from Command Line ===== To change the audio volume from remote of my Mac at home, I needed a command line tool which I can use via ssh. I've found it here: [[http://osxdaily.com/2007/04/28/change-the-system-volume-from-the-com
- rmdir for OSX
- ettings. This makes removing directories from the command line quite complicated: <code bash> $ rmdir test rmdir: test: Directory not empty $ rm test/.DS_Store $ /bin/rmdir test </code> I wrote a small bash function to remove direc
- Make your Mac feel at Home
- s whether your Mac is in the given (home) WLAN. <code bash> # # Path to 'airport' executeable, as of ... MESSID}\$") # # Branch depending on grep's return code. if [ "$?" == "0" ]; then # in home wlan echo... # not at home echo "on the road again..." fi </code> To use this code, set the ''HOMESSID'' to your ''SSID'' (the name of the wireless network) and re
- Comapct Sparse Image
- ====== Comapct Sparse Image ====== <code bash> hdiutil compact your.sparseimage </code> {{tag>sysadmin cli apple mac osx}}
- AirPort Command Line Interface
- ====== AirPort Command Line Interface ====== ===== AirPort On/Off ===== Infos from [[http://osxdaily.com/2011/05/31/enable-disable-airport-wireless-connections-command-line/|OS X Daily]] ==== AirPort On ==== networksetup -setairportpower airport on
- Set a Mac's Hostname
- desired hostname instead of ''the_hostname''): <code bash> sudo scutil --set HostName the_hostname </code> === Credits === * http://osxdaily.com/2010/09/06/change-your-mac-hostname-via-terminal/ {{tag