<?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</title>
        <description></description>
        <link>https://old.andunix.net/</link>
        <image rdf:resource="https://old.andunix.net/_media/favicon.ico" />
       <dc:date>2026-06-03T22:01:00+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://old.andunix.net/tag/cli"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/virtualbox/cli"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/compact_sparseimage"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/solaris/localeadm"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/linux/pargs"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/java/jps"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/prog/firefox/index"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/solaris/fstyp"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/linux/debian/cleanup_packages"/>
                <rdf:li rdf:resource="https://old.andunix.net/blog/2011/start_and_stop_apple_file_server_command_line"/>
                <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/blog/2010/how_create_moveable_vm_virtualbox"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/solaris/exam_notes"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/solaris/list_devices"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/tools"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/mac_command_line_audio"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/make_your_mac_feel_home"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/linux/debian/timezone"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/macports"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/linux/debian/init"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/linux/debian/disable_service"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/iconv"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/hostname"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/compare_directories"/>
            </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/tag/cli">
        <dc:format>text/html</dc:format>
        <dc:date>2014-01-27T14:49:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cli</title>
        <link>https://old.andunix.net/tag/cli</link>
        <description>cli

Pages

Bookmarks</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/virtualbox/cli">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-22T13:16:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>VBoxManage (The VirtualBox CLI)</title>
        <link>https://old.andunix.net/info/virtualbox/cli</link>
        <description>VBoxManage (The VirtualBox CLI)

This is a online reference of the output of VBoxManage without options.


Oracle VM VirtualBox Command Line Management Interface Version 4.2.16
(C) 2005-2013 Oracle Corporation
All rights reserved.


Usage:
VBoxManage [&lt;general option&gt;] &lt;command&gt;</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/solaris/localeadm">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-01T20:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>localeadm</title>
        <link>https://old.andunix.net/info/solaris/localeadm</link>
        <description>localeadm

The localeadm utility queries and configures Solaris locales through a command line interface.

	*  man page: localeadm(1M)

Preparation

Check your Solaris Release with cat /etc/release and get a matching DVD or ISO image.

If you're using an ISO image, you have to mount it (insert your path in the first line.</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/linux/pargs">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-28T09:01:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pargs for Linux</title>
        <link>https://old.andunix.net/info/linux/pargs</link>
        <description>pargs for Linux

If you miss pargs from Solaris, then try this:


ps eww -p &lt;pid&gt;


linux sysadmin cli</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/java/jps">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-19T14:05:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>jps - Java Virtual Machine Process Status Tool</title>
        <link>https://old.andunix.net/info/java/jps</link>
        <description>jps - Java Virtual Machine Process Status Tool

The Java Virtual Machine has a jps tool wich is a bit like the ps command.
jps lists all java Processes of a user.
You can find the man page at &lt;http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html&gt;.
I'm using it with the parameters -l (long listing) and -m</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/prog/firefox/index">
        <dc:format>text/html</dc:format>
        <dc:date>2013-08-02T19:34:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Firefox</title>
        <link>https://old.andunix.net/info/prog/firefox/index</link>
        <description>Firefox

Start another Firefox

To start another instance of firefox, use this command:
firefox -P &quot;My Profile&quot; -no-remote
For more information visit Opening a new instance of your Mozilla application with another profile in the mozillaZine Knowledge Base.

mozilla firefox cli howto</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/solaris/fstyp">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>fstyp</title>
        <link>https://old.andunix.net/info/solaris/fstyp</link>
        <description>fstyp

fstyp reports the type of file system.
With the -v (verbose) option reports even more informations.

	*  man page: fstyp(1M)

Example

UFS: ''fstyp''
fstyp /dev/rdsk/c1t0d0s0

ufs


UFS: ''fstyp -v''
fstyp -v /dev/rdsk/c1t0d0s0

ufs
magic   11954   format  dynamic time    Wed Dec 23 17:26:29 2009
sblkno  16      cblkno  24      iblkno  32      dblkno  760
sbsize  2048    cgsize  8192    cgoffset 64     cgmask  0xffffffc0
ncg     427     size    20972160        blocks  20654449
bsize   819…</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/linux/debian/cleanup_packages">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-28T09:01:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Cleanup Packages</title>
        <link>https://old.andunix.net/info/linux/debian/cleanup_packages</link>
        <description>Cleanup Packages

Purge uninstalled Packages

If a package is removed, it is only uninstalled, but the configuration remains on the system.
This is a good thing, as you are able to reinstall the package and have it configured with the old configuration.
But if you want to cleanup this old stuff, you can ge a list of uninstalled (but not purged) packages with this command:</description>
    </item>
    <item rdf:about="https://old.andunix.net/blog/2011/start_and_stop_apple_file_server_command_line">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T08:53:41+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Start and Stop the Apple File Server from Command Line</title>
        <link>https://old.andunix.net/blog/2011/start_and_stop_apple_file_server_command_line</link>
        <description>Start and Stop the Apple File Server from Command Line

You can use /sbin/service to start or stop the “Personal File Sharing”.

Start the Apple File Server (“Personal File Sharing”):


sudo /sbin/service com.apple.AppleFileServer start


And likewise stop it:</description>
    </item>
    <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/blog/2010/how_create_moveable_vm_virtualbox">
        <dc:format>text/html</dc:format>
        <dc:date>2010-05-17T07:55:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How To Create a Moveable VM with VirtualBox</title>
        <link>https://old.andunix.net/blog/2010/how_create_moveable_vm_virtualbox</link>
        <description>How To Create a Moveable VM with VirtualBox

VirtualBox works good when you use the same VMs all the time. It organizes the disk images in one directory and the configuration files in another. It kees a record of all known disk images and virtual machines.</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/solaris/exam_notes">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Notes for the Solaris 10 System Administration Exam (CX-310-200 &amp; -202)</title>
        <link>https://old.andunix.net/info/solaris/exam_notes</link>
        <description>Notes for the Solaris 10 System Administration Exam (CX-310-200 &amp; -202)

I'm preparing myself for the two exams to achieve the Sun Certified System Administrator (SCSA) certification.
This are my notes taken while studying the preparation books.

Managing File Systems

List Devices

To list the system's devices, you can use the following commands:</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/solaris/list_devices">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Solaris: List Devices</title>
        <link>https://old.andunix.net/info/solaris/list_devices</link>
        <description>Solaris: List Devices

To list the system's devices, you can use the following commands:

	*  dmesg
	*  format
	*  prtconf
	*  sysdef

solaris sysadmin device cli admin</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/tools">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Command Line Tools Used in My Scripts</title>
        <link>https://old.andunix.net/info/script/tools</link>
        <description>Command Line Tools Used in My Scripts

This is a list of comman dline tools which I use in my scripts an which should be installed on every of my systems.
Basic tools (e.g. awk, find, grep, ps) which are always installed are not listed.

Audio/Video</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/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/linux/debian/timezone">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-08T10:45:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Setting the Timezone</title>
        <link>https://old.andunix.net/info/linux/debian/timezone</link>
        <description>Setting the Timezone

The timezone is stored in the file /etc/timezone.

Check the Timezone


cat /etc/timezone


Example:


# cat /etc/timezone 
Europe/London


Set the Timezone

You can use vi:


vi /etc/timezone


Or set it directy:


echo &quot;Europe/Berlin&quot; &gt; /etc/timezone</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/linux/debian/init">
        <dc:format>text/html</dc:format>
        <dc:date>2013-07-03T13:03:11+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>init</title>
        <link>https://old.andunix.net/info/linux/debian/init</link>
        <description>init

Managing init Scripts

To activate an init script (“myscript”):
update-rc.d myscript enable
To deactivate an init script (“myscript”):
update-rc.d myscript remove
Further information can be found at Daemon - Debian Wiki

sysadmin linux debian cli</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/linux/debian/disable_service">
        <dc:format>text/html</dc:format>
        <dc:date>2016-10-01T19:54:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Disable a Service</title>
        <link>https://old.andunix.net/info/linux/debian/disable_service</link>
        <description>Disable a Service

To disable a service:


service &lt;service&gt; stop
update-rc.d &lt;service&gt; enable|disable


With systemd (starting with Debian 8):


systemctl disable &lt;service&gt;


To (re)enable a service: 


update-rc.d &lt;service&gt; enable|disable
service &lt;service&gt; stop</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/iconv">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Change Encoding with iconv</title>
        <link>https://old.andunix.net/info/script/iconv</link>
        <description>Change Encoding with iconv

Convert Single File
iconv -f iso-8859-1 -t utf-8 -o OUTPUT.txt INPUT.txt
Converts INPUT.txt from iso-8859-1 to utf-8 and writes it to OUTPUT.txt.

Convert All Files in a Directory


for f in $(find . -type f)
do
  iconv -f iso-8859-1 -t utf-8 -o ${f}_$$_TEMP ${f} \
  &amp;&amp; mv ${f}_$$_TEMP ${f}
done</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/script/compare_directories">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-19T12:34:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Compare directories</title>
        <link>https://old.andunix.net/info/script/compare_directories</link>
        <description>Compare directories

For each of the directories, generate a digest file:


find DIR -type f -exec shasum {} + | LC_ALL=C sort -d -k 2 &gt; shasums.txt


It's important to use LC_ALL=C and the option -d of sort, to get compareable results on different machines.</description>
    </item>
</rdf:RDF>
