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