SSH less command

When going through large text files usually the Linux cat command won’t do. This is where you can use the Linux less command with SSH instead. It is more of a predecessor and there are several jokes on the theme. This is featured on the cover of “Unix and Linux System Administration Handbook” and there’s also the joke: “I though you were more of a guy/gal”. In this article, we will show some basic usage of the SSH less command with examples.

Using SSH less command to view file’s contents

less myTextFile.txt

Using less as a pipe from output

cat largeTextFile.txt | less

While in less you’re actually in a different “mode” so to say, there are many shortcuts you can use to navigate back and forth, to view them you can use the help page

Using the Linux less command Help options

less --help

To exit less just press q

  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

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