Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See Everything In The Terminal/Command Prompt After Long Output

I'm new to ubuntu using the terminal to code some ruby.

Everytime I run this command it outputs like 600 lines of data that I need to analyze.

But when I try to scroll up to see everything alot of the output is cut off.

Is there any way to change the settings of the terminal or another command prompt program or any other options that I can use to take a look all of the data?

like image 922
ChrisWesAllen Avatar asked Dec 09 '11 16:12

ChrisWesAllen


People also ask

How can I see all output in CMD?

Right-click the title bar or click the upper-left corner of the Command Prompt window and select Properties. Click the Layout tab.

How do I scroll up terminal output?

In the Linux terminal, you can scroll up by page using the Shift + PageUp shortcut. And to scroll down in the terminal, use Shift + PageDown. To go up or down in the terminal by line, use Ctrl + Shift + Up or Ctrl + Shift + Down respectively.

How do I show full output in putty terminal?

When you want putty to log all your session output, you have to change the default settings. This is pretty simple: open putty and go to Session->Logging. Select all session output and specify a log file.

How do I see recently executed commands in CMD?

Once you have opened the Command Prompt window and started executing commands, Windows will save the history for your active session. To see the list of recently executed commands in CMD, press F7 key. This will open a pop-up inside CMD showing the list of recently executed commands.

What is the PROMPT command?

The prompt command is used to customize the appearance of the prompt text in Command Prompt or MS-DOS. The prompt command is available in all versions of Windows, as well as in MS-DOS.

What happens when you close a Command Prompt window?

If you close the Command prompt window, and on the next opening of CMD, all the previous commands will be gone. Now open Command Prompt window, and start executing your commands. Suddenly you need the previous command you just wrote, but it just skipped from your mind.

Do you still use the command prompt in Windows?

Although Microsoft has released more tools like PowerShell and Windows Terminal, users still like to use the Command Prompt for their day-to-day command line tasks.


2 Answers

Inside your Terminal Window, go to Edit | Profile Preferences, click on the Scrolling tab, and check the Unlimited checkbox underneath the Scrollback XXX lines row. Click Close and be happy.

like image 50
Mike Avatar answered Sep 21 '22 12:09

Mike


Run the command with

> command | less 

It will only show you as many lines as it can fit on the screen, and then you can scroll down to read the rest.

like image 29
Tudor Avatar answered Sep 23 '22 12:09

Tudor