zeon22 Posted May 24, 2011 Share Posted May 24, 2011 175 Mac OS X Terminal CommandsThe Terminal is a program included with all versions of Mac OS X. To launch terminal goto Applications and click Utilities folder. Terminal is originated in Mac OS X’s predecessors, NeXTSTEP and OPENSTEP, and allows the user to interact with the computer through a command line interface. By default it provides a bash shell.Here is a list of 175 common Mac OS X commands for power usersalias - Create an aliasalloc - List used and free memoryawk – Find and Replace text within file(s)basename – Convert a full pathname to just a folder pathbash - Bourne-Again SHell (Linux)bless - Set volume bootability and startup disk options.break - Exit from a loopcal – Display a calendarcase – Conditionally perform a commandcat – Display the contents of a filecd - Change Directorychflags - Change a file or folder’s flags.chgrp - Change group ownershipchmod - Change access permissionschown - Change file owner and groupchroot – Run a command with a different root directorycksum – Print CRC checksum and byte countsclear - Clear terminal screencmp – Compare two filescomm – Compare two sorted files line by linecomplete – Edit a command completion [word/pattern/list]continue – Resume the next iteration of a loopcp - Copy one or more files to another locationcron – Daemon to execute scheduled commandscrontab - Schedule a command to run at a later date/timecut - Divide a file into several partsdate - Display or change the date & timedc – Desk Calculatordd – Data Dump – Convert and copy a filedf - Display free disk spacediff – Display the differences between two filesdiff3 – Show differences among three filesdirname- Convert a full pathname to just a pathdirs Di – play list of remembered directoriesdiskutil - Disk utilities – Format, Verify, Repairditto – Copy files and foldersdscl – Directory Service command line utilitydu - Estimate file space usageecho - Display message on screened - A line-oriented text editor (edlin)enable – Stop or start printers and classes.env – Set environment and run a utilityeval – Evaluate several commands/argumentsexec - Execute a commandexit - Exit the shellexpect – Programmed dialogue with interactive programsexpand - Convert tabs to spacesexpr - Evaluate expressionsfalse - Do nothing, unsuccessfullyfdisk - Partition table manipulator for Darwin UFS/HFS/DOSfind - Search for files that meet a desired criteriafmt – Reformat paragraph textfold - Wrap text to fit a specified widthfor – Expand words, and execute commandsforeach - Loop, expand words, and execute commandsfsck - Filesystem consistency check and repairfs – usage Filesystem usage (process/pathname)ftp - Internet file transfer programGetFileInfo - Get attributes of HFS+ filesgetopt - Parse positional parametersgoto – Jump to label and continue executiongrep - Search file(s) for lines that match a given patterngroups – Print group names a user is ingzip - Compress or decompress fileshead - Display the first lines of a filehdiutil – Manipulate iso disk imageshistory - Command Historyhostname - Print or set system nameid – Print user and group names/id’sif – Conditionally perform a commandinfo – Help infoinstall - Copy files and set attributesjobs – List active jobsjoin - Join lines on a common fieldkill – Stop a process from runningl - List files in long format (ls -l)ll - List files in long format, showing invisible files (ls -la)less - Display output one screen at a timeln - Make links between files (hard links, symbolic links)locate - Find fileslogname – Print current login namelogin - log into the computerlogout - Exit a login shell (bye)lpr - Print fileslprm - Remove jobs from the print queuelpstat – Printer status informationls – List information about file(s)lsbom – List a bill of materials filelsof - List open filesman - Help manualmkdir – Create new folder(s)mkfifo – Make FIFOs (named pipes)more - Display output one screen at a timemount - Mount a file systemmv - Move or rename files or directoriesnet – Manage network resourcesnice – Set the priority of a commandnohup - Run a command immune to hangupsonintr – Control the action of a shell interruptopen - Open a file/folder/URL/Applicationosascript – Execute AppleScriptpasswd - Modify a user passwordpaste - Merge lines of filespbcopy - Copy data to the clipboardpbpaste - Paste data from the Clipboardpico - Simple text editorping - Test a network connectionpmset - Power Management settingspopd - Restore the previous value of the current directorypr – Convert text files for printingprintenv - Print environment variablesprintf - Format and print dataps - Process statuspushd - Save and then change the current directorypwd - Print Working Directoryquota - Display disk usage and limitsrcp – Copy files between machines.repeat - Execute a command multiple timesrm - Remove filesrmdir - Remove folder(s)rpm – Remote Package Managerrsync - Remote file copy – Sync file tree (also RsyncX)say - Convert text to audible speechsched – Schedule a command to run at a later time.screencapture - Capture screen image to file or disksdiff – Merge two files interactivelysecurity - Administer Keychains, keys, certificates and the Security frameworksed – Stream Editorset – Set a shell variable = valuesetenv - Set an environment variable = valuesetfile – Set attributes of HFS+ filesshift – Shift positional parametersshutdown - Shutdown or restart OS Xsleep - Delay for a specified timesoftwareupdate - System software update toolsort – Sort text filessplit - Split a file into fixed-size piecesstop - Stop a job or processsu - Substitute user identitysudo - Execute a command as another usersum – Print a checksum for a fileswitch - Conditionally perform a commandtail - Output the last part of filestar - Tape ARchivertee - Redirect output to multiple filestest – Condition evaluationtime – Measure Program Resource Usetouch - Change file timestampstraceroute - Trace Route to Hosttr - Translate, squeeze, and/or delete characterstrue - Do nothing, successfullytty - Print filename of terminal on stdintype - Describe a commandumask – Users file creation maskumount - a deviceunalias - Remove an aliasuname – Print system informationunexpand - Convert spaces to tabsuniq - Uniquify filesunits - Convert units from one scale to anotherunset - Remove variable or function namesunsetenv - Remove environment variableusers - Print login names of users currently logged inuuencode - Encode a binary fileuudecode - Decode a file created by uuencodevi – Text Editorwc - Print byte, word, and line countswhere - Report all known instances of a commandwhich – Locate a program file in the user’s pathwhile - Execute commandswho - Print all usernames currently logged onwhoami - Print the current user id and name (`id -un’)xargs - Execute utility – passing argumentsyes - Print a string until interrupted Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.