This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Why  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Why  "cat" command is known as "cat"?" Watch "Why  "cat" command is known as "cat"?" New topic
Author

Why "cat" command is known as "cat"?

Minal Silimkar-Urankar
Ranch Hand

Joined: Nov 25, 2007
Posts: 136
Meaning of "rm" is "remove", then what is the meaning of "cat" command?


Minal Silimkar
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14998
    
  27

Maybe because it's not called "dog"? (Sorry...)

Wikipedia says:
The cat command is a standard Unix program used to concatenate and display files. The name is from catenate, a synonym of concatenate.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149
    
  27

To construct Unix commands, you need 2 things:

1. a twisted sense of humor
2. An unwillingness to put any more letters in the command name than you actually have to.

I've actually seen the word as "catenate", but I doubt that's proper. The "con" in concatenate indicates putting things together.


An IDE is no substitute for an Intelligent Developer.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14998
    
  27

Here's something fun.

Unix also has a tac command. What do you think it does? And why do you think it is called "tac"?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32633
    
215

Originally posted by Jesper Young:
Unix also has a tac command. What do you think it does? And why do you think it is called "tac"?

My guess would be displaying a file backwards. Whether it is backwards one character/word/line at a time, I don't know yet. Off to google...


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923



http://home.arcor.de/hirnstrom/bewerbung
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
What about this?purportedly spoken by Napoleon. What's going on?


Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / Amazon Amazon UK )
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149
    
  27

aibohphobia - a dread fear of palindromes.

Listed in Stan Kelley-Bootle's The Devil's DP Dictionary.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why "cat" command is known as "cat"?
 
It's not a secret anymore!