DEV Community

Cover image for Cats - Meow! 🐱

Posted on


Cats - Meow! 🐱

The cat (Felis catus) is a domestic species of a small carnivorous mammal.

And is also a standard Unix utility, yay!

Cat is used to read files sequentially, writing them to standard output.

Open your terminal; use touch to create a file:
$ touch file

$ echo "Hello World" >> file

Prints "Hello world"
$ cat file

Copy the file contents:

$ touch file2

$ cat file >> file2

Prints "Hello world"
$ cat file2

Concatenate multiple files:
$ touch file3

$ cat file file2 >> file3

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.