Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

In Unix, what do some obscurely named commands stand for?
Indiana University Knowledge Base ^ | 12/31/2087 | author not cited

Posted on 05/29/2015 6:07:16 AM PDT by CharlesOConnell

In Unix, what do some obscurely named commands stand for?

A list of some of the more obscurely named Unix commands follows:

awk
Aho, Weinberger, and Kernighan

The awk scripting language was named by its authors, Al Aho, Peter Weinberger, and Brian Kernighan. For more, see What is awk, and how do I use it?

grep
Global regular expression print

The grep command comes from the command used by the ed program (a simple and venerable Unix text editor) to print all lines matching a certain pattern:

  g/re/p

For more, see What is grep, and how do I use it?

fgrep
Fixed grep

The fgrep command searches for fixed strings only, possibly taking the strings from another file. The "f" does not stand for "fast"; in fact, at times, using the fgrep command can be slower than using the egrep command. However, the fgrep command may still be useful when searching a file for a larger number of strings than the egrep command can handle.

egrep
Extended grep

The egrep command uses fancier regular expressions than the grep command. Many people use the egrep command for its internal algorithms, which are more sophisticated than the grep and fgrep commands. Also, the egrep command is usually the fastest of the three programs.

cat
Catenate

"Catenate" is an obscure word meaning "to connect in a series", which is what the cat command does to one or more files. This is not to be confused with C/A/T, the Computer Aided Typesetter. For more, see In Unix, how do I combine several text files into a single file?

nroff, troff
New roff, Typesetter new roff

These two commands are descendants of the roff command, which was a re-implementation of the Multics runoff program. The runoff program would "run off" a good copy of a document.

tee
T

The tee command is named after plumbing terminology for a T-shaped pipe splitter. This Unix command splits the output of another command, sending it to a file and to the terminal.

biff
A dog named Biff

This command, which turns on asynchronous mail notification, was actually named after a dog. Courtesy of Eric Cooper, Carnegie Mellon University:

"I can confirm the origin of biff, if you're interested. Biff was Heidi Stettner's dog, back when Heidi (and I, and Bill Joy) were all grad students at U.C. Berkeley and the early versions of BSD were being developed. Biff was popular among the residents of Evans Hall, and was known for barking at the mailman, hence the name of the command."
rc
runcom (as in .cshrc or /etc/rc)

The rc command derives from the runcom facility from the MIT CTSS system, ca. 1965. From Brian Kernighan and Dennis Ritchie, as told to Vicki Brown:

"There was a facility that would execute a bunch of commands stored in a file; it was called runcom for "run commands", and the file began to be called "a runcom". rc in Unix is a fossil from that usage."

Note: The name of the shell from the Plan 9 operating system is also rc.

Perl
Practical extraction and report language

The Perl language is a text, process, and file manipulation tool, created by Larry Wall. Perl bridges the gap between shell and C programming, and is free and completely portable. The acronym is one of many variants proposed, with varying degrees of seriousness, as the true origin of the name. However, this is currently regarded as apocryphal. Spelling Perl as "PERL", as though it is an acronym, is incorrect. For further information, see the Usenet newsgroup comp.lang.perl and the Perl FAQ.

For more interesting tidbits, see the book Life with Unix by Don Libes.



TOPICS: Computers/Internet
KEYWORDS: grep; unix
Navigation: use the links below to view more comments.
first previous 1-2021-25 last
To: tacticalogic
chown -R us ./base

while functionally equivalent, I'd say that

chown -R us ./base/*

would better suit the meme

21 posted on 05/29/2015 2:49:59 PM PDT by zeugma (Are there more nearby spiders than the sun is big?)
[ Post Reply | Private Reply | To 10 | View Replies]

To: zeugma
Or

chown -R us ~your/base/*

or is that too Dick and Jane? (Nonetheless, it took me a minute, so I laughed harder.)

22 posted on 05/29/2015 4:19:57 PM PDT by RansomOttawa (tm)
[ Post Reply | Private Reply | To 21 | View Replies]

To: RansomOttawa
chown -R us ~your/base/*

I think you're right about it needing the tilde because that implies "your", but you need a / after it. just a "./base" could be anyone's base.

chown -R us ~/base/*

I'm definitely overthinking it now. lol.

I'll admit it took the second pass through the thread before it clicked in my head initially.

 

23 posted on 05/29/2015 4:37:10 PM PDT by zeugma (Are there more nearby spiders than the sun is big?)
[ Post Reply | Private Reply | To 22 | View Replies]

To: zeugma
chown -R us ~your/base/*

I think you're right about it needing the tilde because that implies "your", but you need a / after it. just a "./base" could be anyone's base.

chown -R us ~/base/*

A tilde by itself stands for your own home directory. However, ~user means user's home directory. (I didn't know what else to name him other than "your.")

I think effectively you're saying "All my base are belong to us." :)

Maybe we are overthinking this. Nerds!

24 posted on 05/29/2015 6:32:45 PM PDT by RansomOttawa (tm)
[ Post Reply | Private Reply | To 23 | View Replies]

To: RansomOttawa

You’re right. I almost never use the ~userid construct. Matter of fact, I can’t remember if I ever have. I almost always use relative directories when moving from one user to another. (gotta love the “..” directory).

OMG, I’m such a nerd.


25 posted on 05/29/2015 7:38:48 PM PDT by zeugma (Are there more nearby spiders than the sun is big?)
[ Post Reply | Private Reply | To 24 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-25 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson