You are not logged in.

#1 2022-09-15 06:58:04

4kin
Member
Registered: 2022-09-15
Posts: 10

easiest way to record every terminal action from begin on

the only way i found for now is a github app (termrec)
that i am not able to install so long



cheers
pq

Offline

#2 2022-09-15 07:09:20

Data007
Member
Registered: 2022-09-06
Posts: 101

Re: easiest way to record every terminal action from begin on

Hi
can you elaborate more on: "from the beginning on"

You can capture the terminal output of commands to a text file.

 ls > SomeDir.txt

--
Data

Offline

#3 2022-09-15 07:21:28

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: easiest way to record every terminal action from begin on

man history

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2022-09-15 07:22:03

4kin
Member
Registered: 2022-09-15
Posts: 10

Re: easiest way to record every terminal action from begin on

@Data007

1> begin of using arch so after install or begin of session

2> yes but NO -->  i want to record every IN and OUTput every session, not manually and not only the output.

@Slithery

thanks for now

Last edited by 4kin (2022-09-15 08:40:10)

Offline

#5 2022-09-15 08:07:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,484

Offline

#6 2022-09-15 08:43:19

4kin
Member
Registered: 2022-09-15
Posts: 10

Re: easiest way to record every terminal action from begin on

and is there a way to put that script command into linux' autoexec.bat and to create a logfile for every beginning terminal session named 'termlog + %date%' ?

Offline

#7 2022-09-15 08:56:28

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: easiest way to record every terminal action from begin on

Linux doesn't have an autoexec.bat - instead you need to use your shells' config file. If you are using bash see...
https://wiki.archlinux.org/title/Bash#C … tion_files


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2022-09-15 09:12:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,484

Re: easiest way to record every terminal action from begin on

Maybe we take a step back here: what are you actually trying to achieve?
Don't say what you think the solution would be. What task do you need to solve?

Offline

#9 2022-09-15 12:31:41

4kin
Member
Registered: 2022-09-15
Posts: 10

Re: easiest way to record every terminal action from begin on

as a newbie to linux it's just better to later be able to have a look into what you have done, because it's not possible to remember all these commands from begin on, and sometimes they are hard to find again later.

it also has an positive effect of remembering these commands

Last edited by 4kin (2022-09-15 12:32:44)

Offline

#10 2022-09-15 15:23:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: easiest way to record every terminal action from begin on

4kin wrote:

as a newbie to linux it's just better to later be able to have a look into what you have done, because it's not possible to remember all these commands from begin on, and sometimes they are hard to find again later.

it also has an positive effect of remembering these commands

Try the up and down arrows from the console to recall previous commands in your history.
You can also use a Ctrl-R followed by a search string to search your history

https://wiki.archlinux.org/title/bash#History   Many of the things in that article are already defaults.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB