SSH head command

If you wish to view the head or the topmost of a large text file you can use SSH head command. It is a handy command that will save you time and can automate your file searching and reading and can make your life lot easier. In this article, we will cover the basic usage of the SSH head command.

Using SSH head command to view the first 10 rows of a text file

head myTextFile.txt

Using head to view the first 100 lines using SSH

head -100 myTextFile.txt

You can use head and tail to view the exact lines of your file.

Using head to view lines 50-60 from a file that’s 100 lines:

tail -50 myTextFile.txt | head -10
  • 0 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler

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...