Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

What is a command line argument?

Tech Computer Center logo

Many Unix commands allow command line arguments, that is, additional words or phrases that follow the name of the command and give more information about what to do.

For example, the man command will give you information about any Unix command. To get information about the date command, for example, you can type:

      yourname@yourcomputer<21>% man date

A command can have any number of arguments. For example, the cat command concatenates any number of files. Suppose you want to display the contents of three files named names, dates, and addresses on your display screen. This command would do it:

      yourname@yourcomputer<22>% cat names dates addresses

Next: Redirecting output streams
See also: What is a Unix command?
Previous: Executing a process
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman, john@nmt.edu
Last updated: 1995/12/04 19:39:34 UT
URL: http://www.nmt.edu/tcc/help/unix/arguments.html
QR two-dimensional bar code