<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://old.andunix.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://old.andunix.net/feed.php">
        <title>andunix.net info:mac</title>
        <description></description>
        <link>https://old.andunix.net/</link>
        <image rdf:resource="https://old.andunix.net/_media/favicon.ico" />
       <dc:date>2026-05-13T14:19:32+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/airport"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/clear_dns_cache"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/compact_sparseimage"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/hostname"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/index"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/mac_command_line_audio"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/macports"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/make_your_mac_feel_home"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/rmdir"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/sidebar"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://old.andunix.net/_media/favicon.ico">
        <title>andunix.net</title>
        <link>https://old.andunix.net/</link>
        <url>https://old.andunix.net/_media/favicon.ico</url>
    </image>
    <item rdf:about="https://old.andunix.net/info/mac/airport">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T08:50:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>AirPort Command Line Interface</title>
        <link>https://old.andunix.net/info/mac/airport</link>
        <description>AirPort Command Line Interface

AirPort On/Off

Infos from OS X Daily

AirPort On
networksetup -setairportpower airport on
AirPort Off
networksetup -setairportpower airport off
Select AirPort Network
networksetup -setairportnetwork {Network} AirPort
mac osx device wlan cli shell script sysadmin</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/clear_dns_cache">
        <dc:format>text/html</dc:format>
        <dc:date>2016-04-05T06:49:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Clear DNS Cache</title>
        <link>https://old.andunix.net/info/mac/clear_dns_cache</link>
        <description>Clear DNS Cache

To clear the DNS cache on OS X, you first have to flush the cache and then send a signal the the 'mDNSResponder'.
dscacheutil -flushcache
sudo killall -HUP mDNSResponder
mac osx sysadmin dns cache cli</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/compact_sparseimage">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T08:52:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Comapct Sparse Image</title>
        <link>https://old.andunix.net/info/mac/compact_sparseimage</link>
        <description>Comapct Sparse Image


hdiutil compact your.sparseimage


sysadmin cli apple mac osx</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/hostname">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T08:53:23+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Set a Mac's Hostname</title>
        <link>https://old.andunix.net/info/mac/hostname</link>
        <description>Set a Mac's Hostname

To set the permanent hostname, use the scutil utility (enter the desired hostname instead of the_hostname):


sudo scutil --set HostName the_hostname


Credits

	*  &lt;http://osxdaily.com/2010/09/06/change-your-mac-hostname-via-terminal/&gt;

mac osx cli sysadmin</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/index">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Mac</title>
        <link>https://old.andunix.net/info/mac/index</link>
        <description>Mac
mac index


apple mac topic</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/mac_command_line_audio">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-10T21:06:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Command Line Audio</title>
        <link>https://old.andunix.net/info/mac/mac_command_line_audio</link>
        <description>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: OS X Daily - Change the system volume from the command line. It's as easy as


sudo osascript -e &quot;set Volume 10&quot;</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/macports">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T08:59:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MacPorts</title>
        <link>https://old.andunix.net/info/mac/macports</link>
        <description>MacPorts

List Ports

list requested ports:


port echo requested | cut -d ' ' -f 1 | uniq


list installed ports:


port -qv installed


Housekeeping

When ports are updated, the old port is only deactivated, not uninstalled:


...
autoconf                       @2.69_2 
autoconf                       @2.69_3 
autoconf                       @2.69_5 
...</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/make_your_mac_feel_home">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T08:53:11+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Make your Mac feel at Home</title>
        <link>https://old.andunix.net/info/mac/make_your_mac_feel_home</link>
        <description>Make your Mac feel at Home

A small snippet from one of my scripts which tests whether your Mac is in the given (home) WLAN.


#
# Path to 'airport' executeable, as of Mac OS X 10.5.
AIRPORT=&quot;/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport&quot;
#
# Set this to your Home WLAN SSID (name):
HOMESSID=&quot;mycastle&quot;
#
# Get SSID info from 'airport' and search for $HOMESSID
SSID=$(${AIRPORT} --getinfo | grep ' SSID:')
SSID=$(echo ${SSID} | grep &quot;^SSID: ${HOMESSID}\$&quot;)…</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/rmdir">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T09:43:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>rmdir for OSX</title>
        <link>https://old.andunix.net/info/mac/rmdir</link>
        <description>rmdir for OSX

The Finder on OSX creates .DS_Store files in the directories to store its settings.
This makes removing directories from the command line quite complicated:


$ rmdir test
rmdir: test: Directory not empty
$ rm test/.DS_Store 
$ /bin/rmdir test</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/sidebar">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-28T08:58:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>andunix Infos</title>
        <link>https://old.andunix.net/info/mac/sidebar</link>
        <description>andunix Infos
info index


Tags</description>
    </item>
</rdf:RDF>
