• TestingDocs
TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Linux commands

cat Linux command with Examples

Overview

In this tutorial, we will learn about the cat Linux command with examples.

cat Linux command

The cat command reads one or more files and prints the file contents to the standard output device i.e computer monitor screen. cat is a short form of “concatenate”

To know more about the command and the command line switches type the following command:

$ man cat

Example

#

The simple cat command displays the file contents to the screen. For example, to view the file hello.cpp file on the screen.

$ cat hello.cpp

 

cat Linux command

#

The cat command can also be used to create and copy file contents. For example, the below command creates a new file called arguments.cpp, and the file contents of the hello.cpp are copied to the new file.

The > operator redirects the file contents to the file instead of displaying on the standard output screen.

$ cat hello.cpp > arguments.cpp

cat Copy command Linux

–

Basic Linux Commands

Linux Basic Commands Tutorial page:

https://www.testingdocs.com/linux-basic-commands-tutorial/

More Information on Ubuntu Linux:
https://ubuntu.com/

Related Posts

sudo auth log entry

Linux commands /

sudo Linux Command with Examples

Common File Commands in Linux

Linux commands /

Common File Commands in Linux

su linux command

Linux commands /

su Linux Command

ls linux command

Linux commands /

ls Linux Command with Examples

touch create file

Linux commands /

touch Linux Command

› mkdir Unix Command

Recent Posts

  • How to secure your SQL Database: Tips and Tricks
  • Shaping the Future of Development: Exploring Key Trends in Software Engineering
  • Improving Java Performance with Multithreading
  • Difference between PHP and JavaScript?
  • Bing Conversation Styles
  • ChatGPT Introduction
  • Open Source AI Frameworks
  • Artificial Intelligence Tools
  • Top AI Music Applications
  • Top AI Website Design Tools

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com