SSH 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 SSH cat command.

Show the contents of a file with SSH cat command

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 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

SSH ip command

If you wish to obtain information about your server’s IP on a Linux machine using SSH you can use...

SSH rm command

If you wish to remove a file or folder from your Linux system you can use SSH rm command. In this...

SSH echo command

One of the most useful commands in a Linux environment is echo. With it, you can provide output...

SSH history command

If you wish to find what commands you have previously executed in a Linux environment you can use...

SSH cd command

SSH cd command is mainly used to navigate in your Linux environment. In this article, we’ll show...

Powered by WHMCompleteSolution