Command options

Command options

Options modify the way that a command works. They usually consist of a hyphen followed by a single letter.

For example the wc command counts the number of words, characters and lines in a file. By using a different option you can choose what is counted.

   wc -w file1   counts the words
   wc -c file1   counts the characters
   wc -l file1   counts the lines

[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:29 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.