C
C
Chvalov2015-07-27 22:21:48
linux
Chvalov, 2015-07-27 22:21:48

Where does the terminal save the output text to the screen?

When executing a command in the ubuntu terminal, where is all the output text saved?
For example, if there is a 5GB file and run the cat file5gb.txt command,
where will all this test be loaded into RAM or will the temporary file be on the hard disk?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Fedoseev, 2015-07-27
@martin74ua

The file is output to the terminal's buffer located in RAM. The buffer size is set in the shell parameters.

S
Saboteur, 2015-07-28
@saboteur_kiev

The cat command prints everything to STDOUT.
If an interactive user is logged in, STDOUT is associated with his virtual screen, the dimensions of which are given (x by y characters), so everything will be output only to stdout, and will be cut off immediately after the output.
If the user is not logged in, then cat can either throw an error or use nohup to output to the file nohup.
Read stdout and tty

N
Nazar Mokrinsky, 2015-07-27
@nazarpc

It won't, moreover, too much output will not fit in the terminal, there will only be an end.
In general, is it difficult for you to check? Create a file, measure the occupied space on all file systems, execute the command, measure again, compare.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question