added 'script' command one-liner
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
6cc23f324c
commit
ccbfce79f6
19
README.md
19
README.md
@ -1017,6 +1017,7 @@ Linux Security Expert</b></a> - trainings, howtos, checklists, security tools an
|
|||||||
* [who](#tool-who)
|
* [who](#tool-who)
|
||||||
* [last](#tool-last)
|
* [last](#tool-last)
|
||||||
* [screen](#tool-screen)
|
* [screen](#tool-screen)
|
||||||
|
* [script](#tool-script)
|
||||||
* [du](#tool-du)
|
* [du](#tool-du)
|
||||||
* [inotifywait](#tool-inotifywait)
|
* [inotifywait](#tool-inotifywait)
|
||||||
* [openssl](#tool-openssl)
|
* [openssl](#tool-openssl)
|
||||||
@ -1556,6 +1557,24 @@ screen -d -m [<command>]
|
|||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
##### Tool: [script](https://en.wikipedia.org/wiki/Script_(Unix))
|
||||||
|
|
||||||
|
###### Record and replay terminal session
|
||||||
|
|
||||||
|
```bash
|
||||||
|
### Record session
|
||||||
|
# 1)
|
||||||
|
script -t 2>~/session.time -a ~/session.log
|
||||||
|
|
||||||
|
# 2)
|
||||||
|
script --timing=session.time session.log
|
||||||
|
|
||||||
|
### Replay session
|
||||||
|
scriptreplay --timing=session.time session.log
|
||||||
|
```
|
||||||
|
|
||||||
|
___
|
||||||
|
|
||||||
##### Tool: [du](https://en.wikipedia.org/wiki/GNU_Screen)
|
##### Tool: [du](https://en.wikipedia.org/wiki/GNU_Screen)
|
||||||
|
|
||||||
###### Show 20 biggest directories with 'K M G'
|
###### Show 20 biggest directories with 'K M G'
|
||||||
|
Loading…
Reference in New Issue
Block a user