Linux cat command

If you would like to view all the contents of a file in a Linux system cat is one of the commands that can help out, in this article we’ll show some basic usage of the Linux cat command.

Show the contents of a file

cat myFile.txt

Show contents of more than one file

cat myFile.txt myFile-2.txt

Write text into a newly created file

cat > fileThatWillBeCreated

then start typing. Once finished press Ctrl + D to exit

Display notifications that can assist

cat -n myFile.txt # Will display number lines

cat -e myFile.txt # Will display $ at each line ending

cat -T myFile.txt # Will display each tabulation with ^I
  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux top command

If you wish to monitor the performance of your VPS or Dedicated server and track processes, RAM...

Linux ping command

If you wish to test your connection to a server from your Linux system you can use the Linux ping...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...