Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A list of the various command line 'util' programs UNIX
You may have already seen hints on mdutil (used to control Spotlight) and textutil (10.4 text utility). Here's a whole slew of additional utilities, as shown by the command whatis *util* (the trailing * isn't necessary, but who knew if there was some other utility that didn't end with util).

The output you get with the above command looks like this:
drutil(1)                - interact with CD/DVD burners
escputil(1)              - maintain Epson Stylus inkjet printers
hdiutil(1)               - manipulate disk images
mdutil(1)                - manage the metadata stores used by Spotlight
niutil(1)                - NetInfo utility
plutil(1)                - property list utility
smbutil(1)               - interface to the SMB requester
textutil(1)              - text utility
textutil(n)              - Procedures to manipulate texts and strings
tiffutil(1), - tiffutil(1) - manipulates tiff files
Now all you need to do is get the man pages for each of them (the manual for hdutil is very long!) for more info on how they each work.

[robg adds: We've run separate hints on most of the programs in the above list. However, I thought it was worth sharing the full list in this simple hint, as you may have missed some of these. I hadn't heard about escputil, for instance...]
    •    
  • Currently 2.57 / 5
  You rated: 4 / 5 (7 votes cast)
 
[16,844 views]  

A list of the various command line 'util' programs | 11 comments | Create New Account
Click here to return to the 'A list of the various command line 'util' programs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A list of the various command line 'util' programs
Authored by: _merlin on Jul 20, '05 10:32:17AM
You forgot a few - there's:
diskutil for various disk management tasks
ktutil for managing Kerberos keytabs
kdb5_util for managing Kerberos databases
pbutil which is part of the developer tools
scutil for managing system configuration parameters
timutil for controlling the tim authentication server
vsdbutil for enabling or disabling permissions on a volume

[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: wgscott on Jul 20, '05 10:45:48AM

That command doesn't work in any of the shells I tested (zsh, bash, tcsh ) but this does:

apropos util | grep util\(

It produces the longer list as well



[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: wgscott on Jul 20, '05 11:02:51AM
Even that approach misses plenty. This gets a bit closer (needs zsh):

zsh-% foreach utilfile in $(ls /usr/sbin/*util /usr/bin/*util /System/Library/Filesystems/**/*util )
whatis $(basename $utilfile )
end

[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: alcor on Jul 20, '05 12:18:19PM

There is also pmset, which doesn't end in util, but allows changing energy saver settings.



[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: jwbales on Jul 20, '05 01:55:33PM

How about using the trusty find command (all on one line)?

$ sudo find -f /usr/*bin /*bin /System/Library/CoreServices /System/Library/Frameworks -type f \( -name \*util -o -name \*setup\* -o -name \*set \) -print

[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: jwbales on Jul 20, '05 02:02:09PM

Doh! Pasting the command dropped some backslashes!

$ sudo find -f /usr/*bin /*bin /System/Library/CoreServices /System/Library/Frameworks -type f \( -name *util -o -name *setup* -o -name *set \) -print

[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: jwbales on Jul 20, '05 02:09:11PM

Double Doh! fsck'n GUI stuff. :-)
You need to have backslashes before the ( AND ) in case this revision to my revision still doesn't work.

$ sudo find -f /usr/*bin /*bin /System/Library/CoreServices /System/Library/Frameworks -type f \( -name *util -o -name *setup* -o -name *set \) -print

@!$#^!% -- If only I'd read! It plainly says "Yes, those are square brackets".



[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: dbs on Jul 20, '05 10:50:04AM

Don't forget "diskutil"



[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: LC on Jul 20, '05 03:24:55PM
In csh (or tcsh) for a quick list --
% ls -d {,/usr}/{,s}bin/*{set,util}
  /usr/bin/drutil    /usr/bin/smbutil             /usr/sbin/ktutil
  /usr/bin/escputil  /usr/bin/snmpset             /usr/sbin/ntptimeset
  /usr/bin/hdiutil   /usr/bin/tiffutil            /usr/sbin/pmap_set
  /usr/bin/niutil    /usr/bin/tset                /usr/sbin/scutil
  /usr/bin/plutil    /usr/sbin/diskutil           /usr/sbin/timutil
  /usr/bin/pmset     /usr/sbin/dnssec-makekeyset  /usr/sbin/vsdbutil
  /usr/bin/reset     /usr/sbin/kdb5_util          /usr/sbin/ypset


[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: boredzo on Jul 20, '05 05:07:20PM

in addition to the *utils and *sets, there are various *tools as well:

  • /usr/bin/certtool
  • /usr/sbin/disktool
  • /usr/bin/install_name_tool
  • /usr/bin/javatool
  • /usr/bin/keytool
  • /usr/bin/nibtool
  • /usr/bin/otool
  • /usr/bin/pcsctool
  • /usr/bin/policytool
  • /usr/bin/servertool
  • /usr/bin/tdbtool

also libtool and glibtool, but those are just developer tools (for creating libraries). install_name_tool is a developer tool, but I've included it in the above list because it can be used to change existing libraries.



[ Reply to This | # ]
A list of the various command line 'util' programs
Authored by: kholburn on Jul 23, '05 02:40:07PM
Use this globpath:


$ more `which globpath`
#!/bin/sh

# globpath
# (c) 2005 Kim Holburn <kim.holburn@nicta.com.au>
# released under the GPL v2 http://www.gnu.org/copyleft/gpl.html

# examples: globpath '*ping*'

SAVEIFS="$IFS"
IFS=":"
paths=( $PATH )
IFS="$SAVEIFS"

pings=( $(echo ${paths[@]/%/\/$1}) )

found=0
for i in ${pings[@]}; do
  if [ -e "$i" ]; then
    echo "$i"
    found=1
  fi 
done
if [ "$found" -eq 0 ]; then
  echo "nothing found"
fi


$ globpath '*util*'
/usr/bin/drutil
/usr/bin/escputil
/usr/bin/hdiutil
/usr/bin/mdutil
/usr/bin/niutil
/usr/bin/plutil
/usr/bin/smbutil
/usr/bin/textutil
/usr/bin/tiffutil
/usr/sbin/diskutil
/usr/sbin/kdb5_util
/usr/sbin/ktutil
/usr/sbin/scutil
/usr/sbin/timutil
/usr/sbin/vsdbutil
$ globpath '*set*'
/sw/bin/lprsetup.sh
/sw/bin/pathsetup.sh
/sw/bin/reset
/sw/bin/tiffset
/sw/bin/tset
/usr/bin/pmset
/usr/bin/psetfinfo
/usr/bin/reset
/usr/bin/setregion
/usr/bin/snmpset
/usr/bin/tset
/usr/sbin/cac_setup
/usr/sbin/dnssec-makekeyset
/usr/sbin/languagesetup
/usr/sbin/ntptimeset
/usr/sbin/pmap_set
/usr/sbin/setkey
/usr/sbin/ypset
/usr/X11R6/bin/setxkbmap
/usr/X11R6/bin/xset
/usr/X11R6/bin/xsetmode
/usr/X11R6/bin/xsetpointer
/usr/X11R6/bin/xsetroot
/usr/X11R6/bin/xtrapreset
$ globpath '*tool*'
/sw/bin/gimptool
/sw/bin/gimptool-1.2
/sw/sbin/kern_tool
/usr/bin/certtool
/usr/bin/glibtool
/usr/bin/glibtoolize
/usr/bin/install_name_tool
/usr/bin/javatool
/usr/bin/keytool
/usr/bin/libtool
/usr/bin/nibtool
/usr/bin/otool
/usr/bin/otool64
/usr/bin/pcsctool
/usr/bin/policytool
/usr/bin/servertool
/usr/bin/tdbtool
/usr/sbin/disktool
/Developer/Tools/agvtool
/Developer/Tools/uninstall-devtools.pl


[ Reply to This | # ]