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 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

Linux tar Command

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

How to Install WordPress via SSH

Since WordPress is the most widely used CMS it’s installation process has been made as simple and...

SSH Execute Command on a Remote server

Via SSH you can connect to a remote server’s shell. This will allow you to execute commands on...

How to connect to your shared hosting account via SFTP with FileZilla

SFTP is a convenient way to use SSH, while also using the interface of a simple FTP. In order to...

SSH netstat command

If you wish to debug or track statistics of your network in a Linux environment you can use SSH...