wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
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: 14074
    
  16

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 7 API documentation
Scala Notes - My blog about Scala
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

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...


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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: 15961
    
  19

aibohphobia - a dread fear of palindromes.

Listed in Stan Kelley-Bootle's The Devil's DP Dictionary.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why "cat" command is known as "cat"?
 
Similar Threads
WA #1.....word association
how the the same operation with "pipe"...
Saturn-V Simulator
Cats
Check free space of a directory of linux environment in Java