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 o
- rmdir for OSX
- ====== rmdir for OSX ====== The Finder on OSX creates ''.DS_Store'' files in the directories to store... ories 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 directo... ogether with the contained ''.DS_Store'' file: <code bash> rmdir() { for d in "$@" do f="${d%/}/.DS_S
- Make your Mac feel at Home
- whether your Mac is in the given (home) WLAN. <code bash> # # Path to 'airport' executeable, as of Ma... ${SSID} | grep "^SSID: ${HOMESSID}\$") # # Branch depending on grep's return code. if [ "$?" == "0" ]; then # in home wlan echo "home sweet home..." els... # not at home echo "on the road again..." fi </code> To use this code, set the ''HOMESSID'' to your
- Command Line Audio
- audio volume from remote of my Mac at home, I needed a command line tool which I can use via ssh. I'v... lume from the command line]]. It's as easy as <code bash> sudo osascript -e "set Volume 10" </code> You can enter numbers from 0 (mute) to 10 (maximum).... = How to play an audio file from command line is described here: [[http://www.macosxhints.com/article
- Set a Mac's Hostname
- t hostname, use the ''scutil'' utility (enter the desired hostname instead of ''the_hostname''): <code bash> sudo scutil --set HostName the_hostname </code> === Credits === * http://osxdaily.com/2010/0
- Comapct Sparse Image
- ====== Comapct Sparse Image ====== <code bash> hdiutil compact your.sparseimage </code> {{tag>sysadmin cli apple mac osx}}
- Clear DNS Cache
- e cache and then send a signal the the 'mDNSResponder'. dscacheutil -flushcache sudo killall -HUP mDNSResponder {{tag>mac osx sysadmin dns cache cli}}
- AirPort Command Line Interface
- tworksetup -setairportnetwork {Network} AirPort {{tag>mac osx device wlan cli shell script sysadmin}}
- andunix Infos
- ===== andunix Infos ===== {{indexmenu>info:#1 .:#1}} ===== Tags ===== ~~TAGCLOUD:50~~
- Mac
- ====== Mac ====== {{indexmenu>.}} {{tag>apple mac topic}}