The script command should be sufficient for Bash, see:
https://unix.stackexchange.com/quest...tput-to-a-file
Announcement
Collapse
No announcement yet.
Konsole - Terminal - saved out of commands
Collapse
This topic is closed.
X
X
-
Yeah! I knew this already. it's great at finding what commands you have used in the past. Just not what the output was or even WHEN the command was used.Originally posted by jglen490 View PostJust looked at my .bash_history. It shows each INPUT command, and with almost every case there is no RESULTANT OUTPUT. So if I entered df -h in konsole, the df -h shows up in .bash_history but not the data that shows on the konsole screen from df -h.
It's a start. Thanks anyhow
- Top
- Bottom
Leave a comment:
-
Another solution I was thinking of.... I've set <Menu>+R to run Konsole. I could add a script file to add output to %DATE%TIME of all within Konsole.
Now my programming stills are a tad rusty.
Would someone please be kind enough to rough something together. I am more suited to problem solving than actual create a program. It's just the way my brain works.
thanks
- Top
- Bottom
Leave a comment:
-
Just looked at my .bash_history. It shows each INPUT command, and with almost every case there is no RESULTANT OUTPUT. So if I entered df -h in konsole, the df -h shows up in .bash_history but not the data that shows on the konsole screen from df -h.
- Top
- Bottom
Leave a comment:
-
.bash_history is just a text file. It can be opened by any text editor.Originally posted by CharlieDaves View PostYES. I am aware of .bash_history in the /Home folder.
People have asked this, and from what I've read you cannot (in 2008 or 2016) read the command output of terminal/Konsole after it's closed.
- Top
- Bottom
Leave a comment:
-
Sorry, it's a while since I used it. All I can suggest is man tmux (daunting, it's 3300 lines long), or one of the stack exchange forums, and work out the commands to log output the way you want, then put them in ~/.tmux.conf.Originally posted by CharlieDaves View Posttmux ... Found the install software, now how do I make it "automatic"?? Please??
- Top
- Bottom
Leave a comment:
-
Okay. Sounds good. Found the install software, now how do I make it "automatic"?? Please??Originally posted by jlittle View Posttmux ... perhaps with a plugin such as tmux logging
- Top
- Bottom
Leave a comment:
-
You can "tee" your bash console to a file, thus saving all text from it. You can try using the "screen" command to do the same. You can try zsh instead of bash - it has more options and might include one to capture output.
- Top
- Bottom
Leave a comment:
-
Konsole - Terminal - saved out of commands
Not to sure if this KDE or LINUX overall.
Q. Is there a file that stroes the OUTPUTS of commands executed within Terminal or Konsole?
Q. Is there a way (besides Grep output.txt) for all commands and their respective outputs to be automatically saved.
YES. I am aware of .bash_history in the /Home folder.
People have asked this, and from what I've read you cannot (in 2008 or 2016) read the command output of terminal/Konsole after it's closed. WHAT I have read is that you can turn this feature on.
As mentioned above. Not to sure if it's KDE or Linux, or Gnome...
TIA
Tags: None
- Top
- Bottom
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: