I’m using Bash on Ubuntu, and sometimes when I run a command, the output overfills the terminal, even when I scroll up to the top. How can I access the part of the output that’s hidden because of the overfill?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can try any of the following (Using the
lscommand as an example for where the commands would go):Option A: Redirect the output to a file with
>and then examine the file later withlessor a text editor likevimorgedit.To write the command’s output to both stdout and stderr to your
outfile, add a2>&1at the end, like so:Option B: pipe the output of your command directly to
lessNote: if you view the output with
lesswith either of the above options, use:Ctrl+Fto go down a page,Ctrl+Bto go up a page ,Ctrl+Dfor down 1/2 a page,Ctrl+Ufor up 1/2 a pageqto exit fromlessanytime.