Meniu

How to record a UNIX terminal session

Start the recording of Unix terminal session with script command. And start doing your important configurations, it will recorded in a file.

After completing the task ,you can exit the recording with exit command

Example procedure:

[root@core-22 ~]# script
Script started, file is typescript
[root@core-22 ~]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@core-22 ~]# service httpd start
Starting httpd:                                            [  OK  ]
[root@core-22 ~]# exit
exit
Script done, file is typescript

So this Unix terminal session will record into file typescript
To view the recorded session use cat command

[root@core-22 ~]# cat typescript
Script started on Sat 09 Jul 2011 07:49:22 PM IST
[root@core-22 ~]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@core-22 ~]# service httpd start
Starting httpd:                        [  OK  ]
[root@core-22 ~]# exit
exit

Script done on Sat 09 Jul 2011 07:49:39 PM IST

So this your recorded terminal session

Mirela

Zona de mobile
  • | 34 articole

Nici un comentariu inca. Fii primul!
  • powered by Verysign