An A-Z Index of the Apple OS X command line

Source: Internet
Author: User
Tags builtin echo display set set disk usage

Source: Http://ss64.com/osx/An A-Z Index of theApple OS X command Line
  Alias Create an alias alloc List used and free memory apropos Search the Whatis database for strings ASR  Apple software Restore 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 Bindi   NGS Bless Set Volume bootability and Startup disk options break Exit from A to, while, Until or Select loop Builtin Execute a shell builtin bzip2 Compress or decompress filesc cal Display a calendar calendar Re       Minder Service Caller Return The context of a subroutine call case conditionally perform a command cat Concatenate and print (display) The content of files CD directory chflags change a file or folder ' s Flags CHGRP Change Group ownership chmod Change access Permissions chown change file owner and group Chroo T Run a command withA different root directory cksum Print CRC checksum and byte counts clear clear terminal Screen CMP Compa Re the files Comm Compare the sorted files line by 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 fi Les to another location cron Daemon to execute scheduled commands crontab Schedule a command to run at a later DA Te/time csplit Split a file into context-determined pieces Curl Transfer data from or to a server cut Di Vide a file into several PARTSD date Display or change the date & time DC Desk Calculator DD Con Vert and copy a file, clone disks declare declare variable & set attributes defaults set preferences, show Hidd En files DF Display free disk space diff Display the differences between both files DIFF3 Show Differenc Es 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 ditto Copy Files and folders Dot_clean Remove dot-underscore files drutil Interact with CD/DVD burners Dscacheutil Query or F Lush the Directory service/dns cache Dseditgroup Edit, create, manipulate, or delete groups dsenableroot Enable root AC Cess dsmemberutil View User and groups rights DSCL Directory Service command line utility du Estimate file Space Usagee echo Display text on screen Ed A line-oriented text Editor (Edlin) enable enable and DISA   BLE 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 spaces expect programmed dialog UE with interactive progRams Also See AppleScript Export Set an environment variable expr Evaluate expressionsf false  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 criteri A FMT reformat paragraph text fold Wrap text to fit a specified width for Loop command fsck Fi Lesystem consistency check and repair Fsaclctl Filesystem enable/disable ACL support fs_usage Filesystem usage (proces S/pathname) FTP Internet file transfer programg getfileinfo Get attributes of hfs+ files getopt Parse position Al parameters getopts Parse positional parameters goto jump to label and continue execution grep Search F Ile (s) for lines, match a given pattern groups Print group names a user is in gzip Compress or decompress fi Lesh Halt Stop and Restart the operating system hash Refresh the cached/remembered location of commands head Display the first  Lines of a file hdiutil Manipulate ISO disk images history Command history hostname Print or set system Namei 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 ipconfig View and control IP configuration state Info Help info install Copy files and set ATTRIBUTESJ jobs List active jobs join join lines on a common fiel         DK kextfind List Kernel extensions Kickstart Configure Apple Remote Desktop kill Stop a process from Runningl l List files in long format (ls-l) last indicate logins of users and TTYs launchctl Load or unload Daem Ons/agents ll List files in long format, showing invisible files (ls-la) less Display output one screens at A time let EvaluaTe expression Lipo Convert a universal binary ln make links between files (hard links, symbolic links) Lo Cal Set a local (function) variable locate Find files logname Print Current login name login log into th E computer logout Exit a login shell (bye) look Display lines beginning with a given string LPR Print F Iles LPRM Remove jobs from the print queue Lpstat Printer status information LS List information about f   Ile (s) lsregister Reset the Launch Services database Lsbom List A bill of materials file lsof list open Filesm Mans help Manual Mdfind Spotlight search mdutil Manage Spotlight metadata Store mkdir Create new Folde         R (s) Mkfifo make FIFOs (Named pipes) + 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 resources netstat Show Network Status NetWorksetup Network and System Preferences nice Set the ' priority of a ' command nohup Run a command immune to Hangu PS ntfs.util NTFS file system Utilityo onintr Control The action of a shell interrupt open open a file/folder/u  Rl/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 da Ta from the Clipboard ping Test A network connection Pkgutil Query and manipulate installed packages
Plutil Property List Utility Pmset Power Management settings popd Restore The previous value of the Curren T directory PR Convert text files for printing printenv List environment variables printf Format and print Data PS Process status pushd Save and then change the current directory PWD Print working directory q Quota Display disk usage and LIMITSR rcp Copy files between machines read read one line from Standar D input readonly Mark a variable or function as Read-only reboot Stop and restart the system return Exit a F Unction Rev Reverse Lines of a file rm Remove files rmdir Remove folder (s) rpm Remote package Manager rsync Remote file Copy-sync file tree (also Rsyncx) s say Convert text to audible speech screen Multiplex terminal, run remote shells via SSH screencapture Capture screen image to file or disk Scutil Manage system Configuration parameters Sdiff Merge files interactively security administer keychains, keys, certificates and the security framework Sed Stream Editor Select Generate A list of items set Set a shell variable = value Setfile set at Tributes of hfs+ files Shasum Print or Check SHA checksums shift shift Positional parameters shopt Set She ll options shutdown shutdown or restart OS X sips scriptable image processing system sleep Delay for a spec ified time softwareupdate System Software Update Tool sort sort text files source Execute commands from a file Split split a file into fixed-size pieces stat Display The status of a file stop stop a job or process Su substitute user identity sudo Execute a command as another user sum Print a checksum for a file s Uspend Suspend Execution of this shell sw_vers Print Mac OS X Operating system version System_profiler report sys TEM Configuration SysteMsetup computer and display system SETTINGST tail Output The last part of files tar Tape archiver tcpdump Dump traffic on a network tee Redirect output to multiple files test Condition evaluation Textutil Manipu Late text files in various formats (DOC,HTML,RTF) time Measure program Resource use times Print Shell & She ll process times Tmutil Time Machine Utility top Display process information Touch Change file timestamp s TR Translate, squeeze, and/or delete characters trap Execute a command when the shell receives a signal Traceroute Trace Route to Host True does nothing, successfully tty Print filename of terminal on stdin type Describe a command u ufs.util mount/unmount ufs file system Ulimit limit the use of system-wide resources um Ask Users file creation mask umount unmount a device unalias Remove an alias uname Print system Informat Ion Unexpand Convert SPaces to tabs uniq uniquify files units Convert units from one scale to another unset Remove variable or F Unction names until Loop command uptime Show How long system have been running users Print login names of Users currently logged in Uuencode Encode a binary file UUDecode Decode a file created by Uuencode Uuidgen genera Te a Unique ID (uuid/guid) uucp unix to Unix copyv 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 Messag E to another Userx xargs Execute utility-passing Arguments Yes Print a string until interrupted zip P Ackage and Compress (arcHive) files. !! Run the last command again
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.