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 onl
- rmdir for OSX
- ctories 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... together 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
- s whether your Mac is in the given (home) WLAN. <code bash> # # Path to 'airport' executeable, as of Ma... 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 replac
- Command Line Audio
- volume 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). ... -in 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. {{tag
- 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
- Comapct Sparse Image
- ====== Comapct Sparse Image ====== <code bash> hdiutil compact your.sparseimage </code> {{tag>sysadmin cli apple mac osx}}