Linked Questions

4
votes
2answers
3k views

How to create a log file of all the commands I executed [duplicate]

Im in need of help. New learner to linux, and for school, they want me to create a log file of all the commands I executed for a project. I can't figure it out at all. Please help!
0
votes
3answers
1k views

Is it possible to show the output on terminal while writing the output of a command to a file? [duplicate]

I am running a command say nmap www.somesite.com>file.txt so that i can get the output to file.txt. But if I do so, I am not able to see the output of that command on terminal. Is it possible to ...
0
votes
2answers
162 views

Record all terminal interaction in a file (like a journal) [duplicate]

I am currently preparing for a pentesting project. My question is: Is there a way to log all interactions within a terminal in a file (e.g. for later examination). This is not about the typical ...
13
votes
5answers
44k views

bash shell output history file location

Where does the bash shell store the actual terminal session? I want to read the output of commands I used before. All I can find googling is how to store the output of a command. Since output is ...
4
votes
3answers
8k views

How to copy complete content on terminal to a text file using commands ?(Not for one output but everything on terminal)

How to copy complete content on terminal to a text file using commands .
10
votes
1answer
510 views

Is there any way to check history only of current session?

I wanted to know if there is any command or any other way I can check my command history only in the current session.
3
votes
3answers
2k views

How to save the contents of unlogged console screen to a file?

I'm on a tty, with a lots of command inputs, bulk of verbose their output, and some error messages. Now I have to get all those stdin/stdout/stderr texts, in the format displayed in the console screen,...
5
votes
2answers
3k views

Where is the output of a Terminal (Gnome Terminal) stored

First of all, this is not a question about history, which stores all the entered commands. I have on my workstation at work several open Terminals from which I launch simulations, examine the output ...
2
votes
1answer
881 views

Upgraded to Ubuntu 15.04 from 14.10, got the dreaded “starting version 219” error

When I try to login, it reverts me to the login screen. If I move my mouse, it shows a log of system events and then does the same thing. I can Clrl + Alt + F1 to a terminal, and do modifications from ...
-4
votes
1answer
271 views

How to know my commands history

I don't know Why I've downvoted in such manner but still I need an answer I know that I can easily know my commands history by just running the command history. But two major consequences raise here:...
0
votes
1answer
108 views

Is it possible to see a log of all terminal output that occurred after running a command?

I know it's possible to see a history of all commands I've run, but is it possible to see a log of all terminal output that occurred after running a command? Context is that I want to see exactly ...
2
votes
1answer
62 views

Save all command and all output (using script across terminals)

For a short period of time, I want to save the command history and output of every command I run in any terminal I open. It should all go in the same file. So basically I want to run a command (or ...
0
votes
1answer
52 views

Add output of script to file after it has run

I run a script: python my_script.py. It outputs a bunch of lines in the terminal. I forgot to use the output command: python my_script.py > file.txt. Is it possible to get the recent output to the ...