0% found this document useful (0 votes)
48 views1 page

Cat Command

The cat command lists the contents of files to the terminal without opening them in an editor to avoid accidental alterations. To read the .bash_logout file, type "cat .bash_logout" while in the home directory. For longer files, piping the cat output through less allows scrolling through the file using keyboard arrows and page keys to read it in a more manageable way.

Uploaded by

Anudeep Putchala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

Cat Command

The cat command lists the contents of files to the terminal without opening them in an editor to avoid accidental alterations. To read the .bash_logout file, type "cat .bash_logout" while in the home directory. For longer files, piping the cat output through less allows scrolling through the file using keyboard arrows and page keys to read it in a more manageable way.

Uploaded by

Anudeep Putchala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

The cat command (short for “concatenate”) lists the contents of files to the

terminal window. This is faster than opening the file in an editor, and there’s no
chance you can accidentally alter the file. To read the contents of your
.bash_log_out file, type the following command while the home directory is your
current working directory, as it is by default:

cat .bash_logout

With files longer than the number of lines in your terminal window, the text will
whip past too fast for you to read. You can pipe the output from cat through less
to make the process more manageable. With less you can scroll forward and backward
through the file using the Up and Down Arrow keys, the PgUp and PgDn keys, and the
Home and End keys. Type q to quit from less.

cat .bashrc | less

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy