an a-z index of the apple os x command line
TRANSCRIPT
-
8/3/2019 An a-Z Index of the Apple OS X Command Line
1/6
An A-Z Index of the Apple OS X
command line
alias Create an alias alloc List used and free memory
apropos Search the whatis database for strings awk Find and Replace text within file(s)b basename Convert a full pathname to just a filename bash Bourne-Again SHell bg Send to background bind Display readline key and function bindings
bless Set volume bootability and startup disk options. break Exit from a For, While, Until or Select loop builtin Execute a shell builtin bzip2 Compress or decompress filesc
cal Display a calendar caller Return the context of a subroutine call case Conditionally perform a command cat Concatenate and print (display) the content of files cd Change Directory chflags Change a file or folder's flags chgrp Change group ownership chmod Change access permissions chown Change file owner and group chroot Run a command with a different root directory cksum Print CRC checksum and byte countsclear Clear terminal screen
cmp Compare two files
comm Compare two sorted files line by line command Run a command (not a function) complete Edit a command completion [word/pattern/list] continue Resume the next iteration of a loop cp Copy one or more files to another location cron Daemon to execute scheduled commands crontab Schedule a command to run at a later date/time curl Transfer data from or to a server cut Divide a file into several partsd date Display or change the date & time dc Desk Calculator dd Data Dump - Convert and copy a file declare Declare variable & set attributes
defaults Set preferences, show hidden files df Display free disk space diff Display the differences between two files diff3 Show differences among three files dig DNS lookup dirname Convert a full pathname to just a path dirs Display list of remembered directories diskutil Disk utilities - Format, Verify, Repair disown Unbind a job from the current login session
http://ss64.com/osx/alias.htmlhttp://ss64.com/osx/apropos.htmlhttp://ss64.com/osx/awk.htmlhttp://ss64.com/osx/basename.htmlhttp://ss64.com/osx/bash.htmlhttp://ss64.com/osx/bg.htmlhttp://ss64.com/osx/bless.htmlhttp://ss64.com/osx/break.htmlhttp://ss64.com/osx/builtin.htmlhttp://ss64.com/osx/bzip.htmlhttp://ss64.com/osx/cal.htmlhttp://ss64.com/osx/caller.htmlhttp://ss64.com/osx/case.htmlhttp://ss64.com/osx/cat.htmlhttp://ss64.com/osx/cd.htmlhttp://ss64.com/osx/chflags.htmlhttp://ss64.com/osx/chgrp.htmlhttp://ss64.com/osx/chmod.htmlhttp://ss64.com/osx/chown.htmlhttp://ss64.com/osx/chroot.htmlhttp://ss64.com/osx/cksum.htmlhttp://ss64.com/osx/cmp.htmlhttp://ss64.com/osx/comm.htmlhttp://ss64.com/osx/command.htmlhttp://ss64.com/osx/complete.htmlhttp://ss64.com/osx/continue.htmlhttp://ss64.com/osx/cp.htmlhttp://ss64.com/osx/cron.htmlhttp://ss64.com/osx/crontab.htmlhttp://ss64.com/osx/curl.htmlhttp://ss64.com/osx/cut.htmlhttp://ss64.com/osx/date.htmlhttp://ss64.com/osx/dc.htmlhttp://ss64.com/osx/dd.htmlhttp://ss64.com/osx/declare.htmlhttp://ss64.com/osx/defaults.htmlhttp://ss64.com/osx/df.htmlhttp://ss64.com/osx/diff.htmlhttp://ss64.com/osx/diff3.htmlhttp://ss64.com/osx/dig.htmlhttp://ss64.com/osx/basename.htmlhttp://ss64.com/osx/dirs.htmlhttp://ss64.com/osx/diskutil.htmlhttp://ss64.com/osx/disown.htmlhttp://ss64.com/osx/alias.htmlhttp://ss64.com/osx/apropos.htmlhttp://ss64.com/osx/awk.htmlhttp://ss64.com/osx/basename.htmlhttp://ss64.com/osx/bash.htmlhttp://ss64.com/osx/bg.htmlhttp://ss64.com/osx/bless.htmlhttp://ss64.com/osx/break.htmlhttp://ss64.com/osx/builtin.htmlhttp://ss64.com/osx/bzip.htmlhttp://ss64.com/osx/cal.htmlhttp://ss64.com/osx/caller.htmlhttp://ss64.com/osx/case.htmlhttp://ss64.com/osx/cat.htmlhttp://ss64.com/osx/cd.htmlhttp://ss64.com/osx/chflags.htmlhttp://ss64.com/osx/chgrp.htmlhttp://ss64.com/osx/chmod.htmlhttp://ss64.com/osx/chown.htmlhttp://ss64.com/osx/chroot.htmlhttp://ss64.com/osx/cksum.htmlhttp://ss64.com/osx/cmp.htmlhttp://ss64.com/osx/comm.htmlhttp://ss64.com/osx/command.htmlhttp://ss64.com/osx/complete.htmlhttp://ss64.com/osx/continue.htmlhttp://ss64.com/osx/cp.htmlhttp://ss64.com/osx/cron.htmlhttp://ss64.com/osx/crontab.htmlhttp://ss64.com/osx/curl.htmlhttp://ss64.com/osx/cut.htmlhttp://ss64.com/osx/date.htmlhttp://ss64.com/osx/dc.htmlhttp://ss64.com/osx/dd.htmlhttp://ss64.com/osx/declare.htmlhttp://ss64.com/osx/defaults.htmlhttp://ss64.com/osx/df.htmlhttp://ss64.com/osx/diff.htmlhttp://ss64.com/osx/diff3.htmlhttp://ss64.com/osx/dig.htmlhttp://ss64.com/osx/basename.htmlhttp://ss64.com/osx/dirs.htmlhttp://ss64.com/osx/diskutil.htmlhttp://ss64.com/osx/disown.html -
8/3/2019 An a-Z Index of the Apple OS X Command Line
2/6
ditto Copy files and foldersdot_clean Remove dot-underscore files
drutil Interact with CD/DVD burners dscacheutil Query or flush the Directory Service/DNS cachedseditgroup Edit, create, manipulate, or delete groupsdsenableroot Enable root accessdsmemberutil View user and groups rights
dscl Directory Service command line utility du Estimate file space usagee echo Display message on screen ed A line-oriented text editor (edlin)
enable Enable and disable builtin shell commands env List or Set environment variables eval Evaluate several commands/arguments exec Execute a command exit Exit the shell expand Convert tabs to spacesexpect Programmed dialogue with interactive programs
Also see AppleScript
export Set an environment variable expr Evaluate expressionsffalse Do nothing, unsuccessfully
fc Fix command (history) fdisk Partition table manipulator for Darwin UFS/HFS/DOS fg Send job to foreground file Determine file type find Search for files that meet a desired criteria fmt Reformat paragraph text fold Wrap text to fit a specified width for Loop command fsck Filesystem consistency check and repair fsaclctl Filesystem enable/disable ACL support fs_usage Filesystem usage (process/pathname) ftp Internet file transfer programg GetFileInfo Get attributes of HFS+ files getopt Parse positional parameters getopts Parse positional parameters goto Jump to label and continue execution grep Search file(s) for lines that match a given pattern groups Print group names a user is in gzip Compress or decompress filesh halt Stop and restart the operating system hash Refresh the cached/remembered location of commands
head Display the first lines of a filehdiutil Manipulate iso disk images
history Command History hostname Print or set system name
i iconv Convert the character set of a file id Print user and group names/id's if Conditionally perform a command ifconfig Configure network interface parameters info Help info
http://ss64.com/osx/ditto.htmlhttp://ss64.com/osx/drutil.htmlhttp://ss64.com/osx/dscacheutil.htmlhttp://ss64.com/osx/dscl.htmlhttp://ss64.com/osx/du.htmlhttp://ss64.com/osx/echo.htmlhttp://ss64.com/osx/enable.htmlhttp://ss64.com/osx/env.htmlhttp://ss64.com/osx/eval.htmlhttp://ss64.com/osx/exec.htmlhttp://ss64.com/osx/exit.htmlhttp://ss64.com/osx/expand.htmlhttp://www.apple.com/applescript/http://ss64.com/osx/export.htmlhttp://ss64.com/osx/expr.htmlhttp://ss64.com/osx/fc.htmlhttp://ss64.com/osx/fdisk.htmlhttp://ss64.com/osx/fg.htmlhttp://ss64.com/osx/file.htmlhttp://ss64.com/osx/find.htmlhttp://ss64.com/osx/fmt.htmlhttp://ss64.com/osx/fold.htmlhttp://ss64.com/osx/for.htmlhttp://ss64.com/osx/fsck.htmlhttp://ss64.com/osx/fsaclctl.htmlhttp://ss64.com/osx/fs_usage.htmlhttp://ss64.com/osx/ftp.htmlhttp://ss64.com/osx/getfileinfo.htmlhttp://ss64.com/osx/getopt.htmlhttp://ss64.com/osx/getopts.htmlhttp://ss64.com/osx/goto.htmlhttp://ss64.com/osx/grep.htmlhttp://ss64.com/osx/id.htmlhttp://ss64.com/osx/gzip.htmlhttp://ss64.com/osx/halt.htmlhttp://ss64.com/osx/hash.htmlhttp://ss64.com/osx/head.htmlhttp://ss64.com/osx/history.htmlhttp://ss64.com/osx/iconv.htmlhttp://ss64.com/osx/id.htmlhttp://ss64.com/osx/if.htmlhttp://ss64.com/osx/ifconfig.htmlhttp://ss64.com/osx/info.htmlhttp://ss64.com/osx/ditto.htmlhttp://ss64.com/osx/drutil.htmlhttp://ss64.com/osx/dscacheutil.htmlhttp://ss64.com/osx/dscl.htmlhttp://ss64.com/osx/du.htmlhttp://ss64.com/osx/echo.htmlhttp://ss64.com/osx/enable.htmlhttp://ss64.com/osx/env.htmlhttp://ss64.com/osx/eval.htmlhttp://ss64.com/osx/exec.htmlhttp://ss64.com/osx/exit.htmlhttp://ss64.com/osx/expand.htmlhttp://www.apple.com/applescript/http://ss64.com/osx/export.htmlhttp://ss64.com/osx/expr.htmlhttp://ss64.com/osx/fc.htmlhttp://ss64.com/osx/fdisk.htmlhttp://ss64.com/osx/fg.htmlhttp://ss64.com/osx/file.htmlhttp://ss64.com/osx/find.htmlhttp://ss64.com/osx/fmt.htmlhttp://ss64.com/osx/fold.htmlhttp://ss64.com/osx/for.htmlhttp://ss64.com/osx/fsck.htmlhttp://ss64.com/osx/fsaclctl.htmlhttp://ss64.com/osx/fs_usage.htmlhttp://ss64.com/osx/ftp.htmlhttp://ss64.com/osx/getfileinfo.htmlhttp://ss64.com/osx/getopt.htmlhttp://ss64.com/osx/getopts.htmlhttp://ss64.com/osx/goto.htmlhttp://ss64.com/osx/grep.htmlhttp://ss64.com/osx/id.htmlhttp://ss64.com/osx/gzip.htmlhttp://ss64.com/osx/halt.htmlhttp://ss64.com/osx/hash.htmlhttp://ss64.com/osx/head.htmlhttp://ss64.com/osx/history.htmlhttp://ss64.com/osx/iconv.htmlhttp://ss64.com/osx/id.htmlhttp://ss64.com/osx/if.htmlhttp://ss64.com/osx/ifconfig.htmlhttp://ss64.com/osx/info.html -
8/3/2019 An a-Z Index of the Apple OS X Command Line
3/6
install Copy files and set attributesj jobs List active jobs join Join lines on a common fieldkkextfind List kernel extensions
kickstart Configure Apple Remote Desktop kill Stop a process from runningl l List files in long format (ls -l)last Indicate last logins of users and ttys
launchctl Load or unload daemons/agents ll List files in long format, showing invisible files (ls -la) less Display output one screen at a time let Evaluate expression lipo Convert a universal binary ln Make links between files (hard links, symbolic links) local Set a local (function) variable locate Find fileslogname Print current login name
login log into the computerlogout Exit a login shell (bye)
lpr Print files lprm Remove jobs from the print queue lpstat Printer status information ls List information about file(s) lsregister Reset the Launch Services database lsbom List a bill of materials file lsof List open filesmman Help manual
mdfind Spotlight search mdutil Manage Spotlight metadata store mkdir Create new folder(s) mkfifo Make FIFOs (named pipes) more Display output one screen at a time mount Mount a file system mv Move or rename files or directoriesn nano Simple text editor net Manage network resourcesnetstat Show network statusnetworksetup Network and System Preferences
nice Set the priority of a command nohup Run a command immune to hangups ntfs.util NTFS file system utilityo
onintr Control the action of a shell interrupt open Open a file/folder/URL/Application opensnoop Snoop file opens as they occur osacompile Compile Applescript osascript Execute AppleScriptp passwd Modify a user password paste Merge lines of files pbcopy Copy data to the clipboard pbpaste Paste data from the Clipboard
http://ss64.com/osx/install.htmlhttp://ss64.com/osx/jobs.htmlhttp://ss64.com/osx/join.htmlhttp://ss64.com/osx/kickstart.htmlhttp://ss64.com/osx/kill.htmlhttp://ss64.com/osx/ls.htmlhttp://ss64.com/osx/launchctl.htmlhttp://ss64.com/osx/ls.htmlhttp://ss64.com/osx/less.htmlhttp://ss64.com/osx/let.htmlhttp://ss64.com/osx/lipo.htmlhttp://ss64.com/osx/ln.htmlhttp://ss64.com/osx/local.htmlhttp://ss64.com/osx/locate.htmlhttp://ss64.com/osx/login.htmlhttp://ss64.com/osx/lpr.htmlhttp://ss64.com/osx/lprm.htmlhttp://ss64.com/osx/lpstat.htmlhttp://ss64.com/osx/ls.htmlhttp://ss64.com/osx/lsregister.htmlhttp://ss64.com/osx/lsbom.htmlhttp://ss64.com/osx/lsof.htmlhttp://ss64.com/osx/mdfind.htmlhttp://ss64.com/osx/mdutil.htmlhttp://ss64.com/osx/mkdir.htmlhttp://ss64.com/osx/mkfifo.htmlhttp://ss64.com/osx/more.htmlhttp://ss64.com/osx/mount.htmlhttp://ss64.com/osx/mv.htmlhttp://ss64.com/osx/nano.htmlhttp://ss64.com/osx/net.htmlhttp://ss64.com/osx/nice.htmlhttp://ss64.com/osx/nohup.htmlhttp://ss64.com/osx/ntfs-util.htmlhttp://ss64.com/osx/onintr.htmlhttp://ss64.com/osx/open.htmlhttp://ss64.com/osx/opensnoop.htmlhttp://ss64.com/osx/osacompile.htmlhttp://ss64.com/osx/osascript.htmlhttp://ss64.com/osx/passwd.htmlhttp://ss64.com/osx/paste.htmlhttp://ss64.com/osx/pbcopy.htmlhttp://ss64.com/osx/pbpaste.htmlhttp://ss64.com/osx/install.htmlhttp://ss64.com/osx/jobs.htmlhttp://ss64.com/osx/join.htmlhttp://ss64.com/osx/kickstart.htmlhttp://ss64.com/osx/kill.htmlhttp://ss64.com/osx/ls.htmlhttp://ss64.com/osx/launchctl.htmlhttp://ss64.com/osx/ls.htmlhttp://ss64.com/osx/less.htmlhttp://ss64.com/osx/let.htmlhttp://ss64.com/osx/lipo.htmlhttp://ss64.com/osx/ln.htmlhttp://ss64.com/osx/local.htmlhttp://ss64.com/osx/locate.htmlhttp://ss64.com/osx/login.htmlhttp://ss64.com/osx/lpr.htmlhttp://ss64.com/osx/lprm.htmlhttp://ss64.com/osx/lpstat.htmlhttp://ss64.com/osx/ls.htmlhttp://ss64.com/osx/lsregister.htmlhttp://ss64.com/osx/lsbom.htmlhttp://ss64.com/osx/lsof.htmlhttp://ss64.com/osx/mdfind.htmlhttp://ss64.com/osx/mdutil.htmlhttp://ss64.com/osx/mkdir.htmlhttp://ss64.com/osx/mkfifo.htmlhttp://ss64.com/osx/more.htmlhttp://ss64.com/osx/mount.htmlhttp://ss64.com/osx/mv.htmlhttp://ss64.com/osx/nano.htmlhttp://ss64.com/osx/net.htmlhttp://ss64.com/osx/nice.htmlhttp://ss64.com/osx/nohup.htmlhttp://ss64.com/osx/ntfs-util.htmlhttp://ss64.com/osx/onintr.htmlhttp://ss64.com/osx/open.htmlhttp://ss64.com/osx/opensnoop.htmlhttp://ss64.com/osx/osacompile.htmlhttp://ss64.com/osx/osascript.htmlhttp://ss64.com/osx/passwd.htmlhttp://ss64.com/osx/paste.htmlhttp://ss64.com/osx/pbcopy.htmlhttp://ss64.com/osx/pbpaste.html -
8/3/2019 An a-Z Index of the Apple OS X Command Line
4/6
-
8/3/2019 An a-Z Index of the Apple OS X Command Line
5/6
test Condition evaluation textutil Manipulate text files in various formats (Doc,html,rtf) time Measure Program Resource Use times Print shell & shell process times top Display process information
touch Change file timestamps tr Translate, squeeze, and/or delete characters trap Execute a command when the shell receives a signal traceroute Trace Route to Hosttrue Do nothing, successfully
tty Print filename of terminal on stdin type Describe a command uufs.util Mount/unmount UFS file system
ulimit limit the use of system-wide resources umask Users file creation mask umount Unmount a device unalias Remove an alias uname Print system information unexpand Convert spaces to tabs
uniq Uniquify files units Convert units from one scale to another unset Remove variable or function names until Loop command uptime Show how long system has been runningusers Print login names of users currently logged in
uuencode Encode a binary fileuudecode Decode a file created by uuencode
uuidgen Generate a Unique ID (UUID/GUID)uucp Unix to Unix copy
v vi Text Editorw wait Wait for a process to complete wc Print byte, word, and line counts whatis Search the whatis database for complete words where Report all known instances of a command which Locate a program file in the user's path while Loop command who Print all usernames currently logged on whoami Print the current user id and name (`id -un') write Send a message to another userx xargs Execute utility - passing argumentsyes Print a string until interrupted
!! Run the last command again
Commands marked are bash built-in commands. bash is the default shell, it runs underDarwin the open source core of OS X.
OS X Man Pages - Apple Developer Connection
Discussion forumLinks to other Sites, Books etc...
http://ss64.com/osx/test.htmlhttp://ss64.com/osx/textutil.htmlhttp://ss64.com/osx/time.htmlhttp://ss64.com/osx/times.htmlhttp://ss64.com/osx/touch.htmlhttp://ss64.com/osx/tr.htmlhttp://ss64.com/osx/trap.htmlhttp://ss64.com/osx/traceroute.htmlhttp://ss64.com/osx/tty.htmlhttp://ss64.com/osx/type.htmlhttp://ss64.com/osx/ulimit.htmlhttp://ss64.com/osx/umask.htmlhttp://ss64.com/osx/umount.htmlhttp://ss64.com/osx/alias.htmlhttp://ss64.com/osx/uname.htmlhttp://ss64.com/osx/expand.htmlhttp://ss64.com/osx/uniq.htmlhttp://ss64.com/osx/units.htmlhttp://ss64.com/osx/unset.htmlhttp://ss64.com/osx/while.htmlhttp://ss64.com/osx/uptime.htmlhttp://ss64.com/osx/uuencode.htmlhttp://ss64.com/osx/uuencode.htmlhttp://ss64.com/osx/uuidgen.htmlhttp://ss64.com/vi.htmlhttp://ss64.com/osx/wait.htmlhttp://ss64.com/osx/wc.htmlhttp://ss64.com/osx/whatis.htmlhttp://ss64.com/osx/where.htmlhttp://ss64.com/osx/which.htmlhttp://ss64.com/osx/while.htmlhttp://ss64.com/osx/who.htmlhttp://ss64.com/osx/id.htmlhttp://ss64.com/osx/write.htmlhttp://ss64.com/osx/xargs.htmlhttp://ss64.com/osx/bang.htmlhttp://en.wikipedia.org/wiki/Darwin_(operating_system)http://developer.apple.com/documentation/Darwin/Reference/ManPages/index.htmlhttp://ss64.org/viewforum.php?id=10http://ss64.com/links/osx.htmlhttp://ss64.com/links/osx.htmlhttp://ss64.com/osx/test.htmlhttp://ss64.com/osx/textutil.htmlhttp://ss64.com/osx/time.htmlhttp://ss64.com/osx/times.htmlhttp://ss64.com/osx/touch.htmlhttp://ss64.com/osx/tr.htmlhttp://ss64.com/osx/trap.htmlhttp://ss64.com/osx/traceroute.htmlhttp://ss64.com/osx/tty.htmlhttp://ss64.com/osx/type.htmlhttp://ss64.com/osx/ulimit.htmlhttp://ss64.com/osx/umask.htmlhttp://ss64.com/osx/umount.htmlhttp://ss64.com/osx/alias.htmlhttp://ss64.com/osx/uname.htmlhttp://ss64.com/osx/expand.htmlhttp://ss64.com/osx/uniq.htmlhttp://ss64.com/osx/units.htmlhttp://ss64.com/osx/unset.htmlhttp://ss64.com/osx/while.htmlhttp://ss64.com/osx/uptime.htmlhttp://ss64.com/osx/uuencode.htmlhttp://ss64.com/osx/uuencode.htmlhttp://ss64.com/osx/uuidgen.htmlhttp://ss64.com/vi.htmlhttp://ss64.com/osx/wait.htmlhttp://ss64.com/osx/wc.htmlhttp://ss64.com/osx/whatis.htmlhttp://ss64.com/osx/where.htmlhttp://ss64.com/osx/which.htmlhttp://ss64.com/osx/while.htmlhttp://ss64.com/osx/who.htmlhttp://ss64.com/osx/id.htmlhttp://ss64.com/osx/write.htmlhttp://ss64.com/osx/xargs.htmlhttp://ss64.com/osx/bang.htmlhttp://en.wikipedia.org/wiki/Darwin_(operating_system)http://developer.apple.com/documentation/Darwin/Reference/ManPages/index.htmlhttp://ss64.org/viewforum.php?id=10http://ss64.com/links/osx.html -
8/3/2019 An a-Z Index of the Apple OS X Command Line
6/6
Mac OS X is a rock-solid system that's beautifully designed. I much prefer it to Linux -Bill Joy
http://www.wired.com/wired/archive/11.12/billjoy.htmlhttp://www.wired.com/wired/archive/11.12/billjoy.html