I don't understand why your output to a file is being truncated. It should not be. The size of the output piped to a file has nothing to do with the history size of bash. At here, my output is only 427 lines (my HP laptop).
Announcement
Collapse
No announcement yet.
Konsole how to see ALL the output?
Collapse
This topic is closed.
X
X
-
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
-
The default for Konsole is, I think, 1000 lines. Did you run that command dmidecode? I got 2472 lines of output from it!An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Originally posted by Qqmike View PostDid you run that command dmidecode?Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
So, in your case, you are way under the "limit" anyway, where the default limit is 1000 lines. You should have no problem at all.
The problem arises at (or just after exceeding) the 1000 line default limit.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Post 8 from Schwarzer Kater solves this problem: right-click on Konsole and adjust the scroll limit. Gonna mark this Solved for now.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Sorry if I missed this in an earlier post, but did you change the bash history size in your ~/.bashrc file?
Code:# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000
Code:# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=10000 HISTFILESIZE=20000
- Top
- Bottom
Comment
-
The strange thing for me is that the OP could not set this in Konsole's preferences but only temporarily with a right click. *shrug*Last edited by Schwarzer Kater; Mar 25, 2023, 03:52 AM.Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others
get rid of Snap script (20.04 +) • reinstall Snap for release-upgrade script (20.04 +)
install traditional Firefox script (22.04 +) • install traditional Thunderbird script (24.04)
- Top
- Bottom
Comment
-
Yeah, I don't see any menus where an option exists to set that limit, except only temporarily for the current session.
And, as I said above, the strange thing is, Why am I now dealing with this?!
I have never seen an issue in the past. Even for, specifically, dmidecode.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
did you change the bash history size in your ~/.bashrc file?
What is even stranger is that you guys don't seem to have this problem on 22.04.
I read about trying page up, ****+page up, control+page up, alt+page up, I've tried everything from the menus and from my keyboard. Can't go "up" off the top of the Konsole screen.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Originally posted by oshunluvr View Post,,, did you change the bash history size in your ~/.bashrc file?
Something's not right here. Maybe it's dmidecode; the man page has a section
BUGS
More often than not, information contained in the DMI tables is inaccurate, incomplete or simply wrong.
Saving to a text file doesn't work -- I just get a partial file, like what I see on my Konsole screen.
Another approach would be
Code:sudo dmidecode | less
, which you get to with ctrl-alt-f2.Regards, John Little
- Top
- Bottom
Comment
-
Do you still see the truncated output if you open the text file with kate?
More often than not, information contained in the DMI tables is inaccurate, incomplete or simply wrong.
ctrl-alt-f2: I've forgotten/hardly ever needed that; got stuck in that console! how do you return to GUI?! besides a hard reboot!
Code:sudo dmidecode | less
It does not show the command I entered at Konsole, the 'sudo dmidecode | les's command, but it appears to show all the output from that command.
How do you exit from it? Ctrl+c didn't work. I didn't try "q".
man less ... should tell, I suppose ... Boy, I opened a can of worms.
Looking at man less, one must learn 'another language' to understand and fluidly use "less" IMO.
The more I think about it, the problem should have a better solution.
If I think about it beforehand, before issuing a command, then the solution in post 8 would work: rt-click in Konsole and change the scrollback setting.
But who works that way?
You usually want to maintain the flow of your work, not stop and re-do it in the middle of it.
There must be a way to see all your output from the start to any point in your work, your flow of commands and output.
Something wrong with DMI? what is another safe command to try that would generate, say, 2000 lines of output? to use as a test.
How exactly should I capture ALL the output to a text file (to be opened by Kate)?Last edited by Qqmike; Mar 25, 2023, 01:40 PM.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Originally posted by Qqmike View Postctrl-alt-f2: I've forgotten/hardly ever needed that; got stuck in that console! how do you return to GUI?! besides a hard reboot!Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Thanks Snowhog. I recall f7 now ... Shows you how good Kubuntu is: I rarely need the Konsole these past several years.An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
Originally posted by Qqmike View Postctrl-alt-f2: how do you return to GUI?
Code:sudo dmidecode | less
(less's commands are natural for vi or vim users.)
(I use less with the -e option, set by the environment variable LESS in by .bashrc, which allows one to exit with just the space bar. I use less a great deal, via an alias from more.)
...the more i think about it ...
There must be a way to see all your output from the start to any point in your work, your flow of commands and output.
Something wrong with DMI?
what is another safe command to try that would generate, say, 2000 lines of output?Code:seq 2000
How exactly should I capture ALL the output to a text file (to be opened by Kate)?
Code:sudo dmidecode >> dmidecode.txt
Regards, John Little
- Top
- Bottom
Comment
-
Thanks.
Yes on ctrl+alt+f1 returning to GUI after ctrl+alt+f2.
Also sudo dmidecode > dmidecode.txt did, in fact, work to capture all the output.
So it does sound like remembering to rt-click on Konsole and setting the scrollback limit BEFORE starting work is the way to go.
However, if you already started work without changing the scrollback limit above 1000, and the output 'scrolled off the top,' writing it to text does not seem to capture it all - it's gone.
Many thanks, jlittle, for all the explanation! It's always interesting.
An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
Comment