Bash output command too large, can't read it!

I’m having some troubles on Ubuntu 14.04 initialization, it fails to mount an SSH folder and gives me the option of a manual recovery by pressing M, displaying a command-line logged at root user for debugging the problem.

My troubles start when I try to read the sshfs help file and it is bigger than the screen, therefore impossible to read the cut-out part.

I managed to solve this by doing sshfs -h >> read; nano read but I’m wondering if there is a easiest or more elegant/right way of doing this job.

PS: I’m not at the Ubuntu terminal emulator, so it’s impossible to adjust the “scrolling” tab, since it doesn’t exists.

Asked By: Mauk


People usually use a pager like less to read such a long output:

sshfs -h | less

On less type H to show help. Q to quit.

Note that you might occasionally need 2>&1 to see also additional output from stderr. For sshfs -h it has such an output so you’d better do that like this:

sshfs -h 2>&1 | less

Besides using a pager, on Linux text console you can scroll back/forward the screen without a scroll bar by typing Shift+PgUp or Shift+PgDn.

Answered By: yaegashi

Commands like these may help

man sshfs
sshfs -h 2>&1 | more   # or "less", if possible
Answered By: roaima
Categories: Answers Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.