分类:
2009-06-28 14:56:19
Create an alias •
alloc List used and free memory
Find and Replace text within file(s)
b
basename Convert a full pathname to just a folder path
Bourne-Again SHell
Send to background •
bind Display readline key and function bindings •
Set volume bootability and startup disk options.
Exit from a For, While, Until or Select loop •
Execute a shell builtin •
c
Display a calendar
Return the context of a subroutine call •
Conditionally perform a command •
Display the contents of a file
Change Directory •
Change a file or folder's flags
Change group ownership
Change access permissions
Change file owner and group
Run a command with a different root directory
Print CRC checksum and byte counts
clear Clear terminal screen
Compare two files
Compare two sorted files line by line
Run a command (not a function) •
Edit a command completion [word/pattern/list] •
Resume the next iteration of a loop •
Copy one or more files to another location
Daemon to execute scheduled commands
Schedule a command to run at a later date/time
cut Divide a file into several parts
d
Display or change the date & time
Desk Calculator
Data Dump - Convert and copy a file
Declare variable & set attributes •
Set preferences
Display free disk space
Display the differences between two files
Show differences among three files
DNS lookup
dirname Convert a full pathname to just a path
Display list of remembered directories •
Disk utilities - Format, Verify, Repair
Unbind a job from the current login session •
Copy files and folders
dot_clean Remove dot-underscore files
Interact with CD/DVD burners
Query or flush the Directory Service/DNS cache
Directory Service command line utility
Estimate file space usage
e
Display message on screen •
ed A line-oriented text editor (edlin)
Enable and disable builtin shell commands •
Set environment and run a utility
Evaluate several commands/arguments •
Execute a command •
Exit the shell •
Convert tabs to spaces
expect Programmed dialogue with interactive programs
Also see
Set an environment variable •
Evaluate expressions
f
false Do nothing, unsuccessfully
Fix command (history)
Partition table manipulator for Darwin UFS/HFS/DOS
Send job to foreground •
Search for files that meet a desired criteria
Reformat paragraph text
Wrap text to fit a specified width
Loop command •
Filesystem consistency check and repair
Filesystem enable/disable ACL support
Filesystem usage (process/pathname)
Internet file transfer program
g
Get attributes of HFS+ files
Parse positional parameters
Parse positional parameters •
Jump to label and continue execution
Search file(s) for lines that match a given pattern
Print group names a user is in
Compress or decompress files
h
Refresh the cached/remembered location of commands •
Display the first lines of a file
hdiutil Manipulate iso disk images
Command History •
hostname Print or set system name
i
Print user and group names/id's
Conditionally perform a command •
Help info
Copy files and set attributes
j
List active jobs •
Join lines on a common field
k
kextfind List kernel extensions
Stop a process from running
l
List files in long format (ls -l)
last Indicate last logins of users and ttys
Load or unload daemons/agents
List files in long format, showing invisible files (ls -la)
Display output one screen at a time
Evaluate expression •
Convert a universal binary
Make links between files (hard links, symbolic links)
Set a local (function) variable •
Find files
logname Print current login name
log into the computer
logout Exit a login shell (bye) •
Print files
Remove jobs from the print queue
Printer status information
List information about file(s)
Reset the Launch Services database
List a bill of materials file
List open files
m
man Help manual
Spotlight search
Manage Spotlight metadata store
Create new folder(s)
Make FIFOs (named pipes)
Display output one screen at a time
Mount a file system
Move or rename files or directories
n
Manage network resources
netstat Show network status
networksetup Network and System Preferences
Set the priority of a command
Run a command immune to hangups
NTFS file system utility
o
Control the action of a shell interrupt
Open a file/folder/URL/Application
Compile Applescript
Execute AppleScript
p
Modify a user password
Merge lines of files
Copy data to the clipboard
Paste data from the Clipboard
Simple text editor
Test a network connection
pkgutil Query and manipulate installed packages
plutil Property list utility
Power Management settings
Restore the previous value of the current directory •
Convert text files for printing
Print environment variables
Format and print data •
Process status
Save and then change the current directory
Print Working Directory •
q
Display disk usage and limits
r
Copy files between machines
Read one line from standard input •
Mark a variable or function as read-only •
reboot Stop and restart the system
Exit a function •
Reverse lines of a file
Remove files
Remove folder(s)
Remote Package Manager
Remote file copy - Sync file tree (also )
s
Convert text to audible speech
Multiplex terminal, run remote shells via ssh
Capture screen image to file or disk
Merge two files interactively
security Administer Keychains, keys, certificates and the Security framework
Stream Editor
Generate a list of items •
Set a shell variable = value •
Set attributes of HFS+ files
Shift positional parameters •
Set shell options •
Shutdown or restart OS X
Delay for a specified time
System software update tool
Sort text files
Execute commands from a file •
Split a file into fixed-size pieces
Stop a job or process
Substitute user identity
Execute a command as another user
Print a checksum for a file
Suspend execution of this shell •
sw_vers Print Mac OS X operating system version
Report system configuration
systemsetup Computer and display system settings
t
Output the last part of files
Tape ARchiver
Redirect output to multiple files
Condition evaluation •
Manipulate text files in various formats (Doc,html,rtf)
Measure Program Resource Use
Print shell & shell process times •
Change file timestamps
Translate, squeeze, and/or delete characters
Execute a command when the shell receives a signal •
Trace Route to Host
true Do nothing, successfully
Print filename of terminal on stdin
Describe a command •
u
ufs.util Mount/unmount UFS file system
limit the use of system-wide resources •
Users file creation mask
Unmount a device
Remove an alias •
Print system information
Convert spaces to tabs
Uniquify files
Convert units from one scale to another
Remove variable or function names •
Loop command •
users Print login names of users currently logged in
Encode a binary file
Decode a file created by uuencode
Generate a Unique ID (UUID/GUID)
uucp Unix to Unix copy
v
Text Editor
w
Wait for a process to complete •
Print byte, word, and line counts
Report all known instances of a command
Locate a program file in the user's path
Loop command •
Print all usernames currently logged on
Print the current user id and name (`id -un')
Send a message to another user
x
Execute utility - passing arguments
yes Print a string until interrupted
Commands marked • are bash built-in commands.
OS X Panther 10.3, Tiger 10.4 and Leopard 10.5 default to running the bash shell, this runs under 'Darwin' the open source core of OSX.
OS X Man Pages - Apple Developer Connection
Discussion forum
Links to ...
Mac OS X is a rock-solid system that's beautifully designed. I much prefer it to Linux -