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
- 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... fi /bin/rmdir "${d}" || ls -al "${d}" done } </code> With this function you can remove the directory
- 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}\$") # # 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 repl
- Command Line Audio
- 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).... n command line audio player]]. You just enter <code bash> afplay file.wav </code> More information on how to use afplay is available via afplay -h. {{t
- Set a Mac's Hostname
- esired 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}}