asked 38.4k views
1 vote
Which command is used to record a user login session in a file?

1) macro
2) read
3) script

1 Answer

2 votes

Final answer:

The 'script' command is used to record a user login session to a file in Unix-like operating systems, capturing all terminal activity until it is stopped with 'exit' or interrupted.

Step-by-step explanation:

The command used to record a user login session in a file on Unix-like operating systems is script. This command starts a recording session that captures all the activity in your terminal (input and output) until it is stopped. To begin recording a session, you would type script filename at the command prompt, where 'filename' is the name of the file you want to save the session to. The session recording stops when you type exit or when the session is interrupted with CTRL-D.

answered
User Karesh A
by
8.5k points