Output was lost in linux terminal. How do I restore? [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
I was executing the script and sequentially outputting the result of the execution to the command line. Since there was too much data, the output was lost, and now I only have the last part of it on the screen. Is it possible to get the whole output somehow?

No. Once the output in a terminal window is gone, you can't get it back. Therefore it's advised, either to work with a terminal that can contain more than just one screen, or to forward your output to an output file, which you can analyse afterwards.

Related

Linux terminal has odd gap between words and cursor [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm trying to work in my terminal (I'm using the standard what I believe is a debian terminal on a chromebook) and for a while now I have had a really annoying gap between the words im typing and the actual typing cursor, the space also seems to gradually increase as I type more. I've decided to just deal with it for a while now after multiple google searches led me only to dead ends and I can no longer recall what actually caused this problem in the first place, but it's starting to frustrate me.
If anyone else gets this issue a simple change in font gets rid of the extra space.

Shuf command in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am confused with how shuf command works with streaming input. Does it buffer the data? Or is there some way of doing this in an online fashion.
This tool reads either a file, or from the linux/unix stdin. There is no streaming.
When you do just do shuf on the command line, you will have to press CTRL-D at some point to tell it "input is complete". Only then the tool starts processing the data.

Is there an argument for the "top" command to get a permanent result? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
The top command is live and constantly updating, not generating a permanent result. Can we add an argument for a permanent result (if it exists), or use a different command resulting in a definite and final response?
top -n1
should do the job. If you want to store the output in a file, you should add the -b option for batch mode.
Note that this is just a sample of usage at one time, not anything like a final answers as all the numbers in top vary over time even on the stablest of systems.

Linux command needing translating [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I have just started learning the Linux system and I need some help to translate the following to English:
grep WARNING readme.txt
and
grep WARNING readme.txt > warnings.txt
This is a homework question that i have researched myself but having trouble learning exactly what it means.
thanks in advance.
Try making a file on your computer named readme.txt. Put some lines of text in there, and make sure that some lines say "WARNING" while other lines do not.
Then run your first command and observe its output.
Then run your second command and observe its output and observe what was written to warnings.txt.

at: how to schedule a job to run at one second later? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to use the command "at" to schedule a job to run at one second (or minute/hour) later. If using "-t" option, then it involves with the hassle of getting the current time etc. Is there any easy way out?
But don't suggest me to use "sleep", because the current process will exit.
Thanks for the tip.
The at program can take now+ a time unit (e.g. now+1minute) as a timespec. You won't get finer time resolution than one minute with at.

Resources