Github raylee/tldr -- 专注于给出例子的manual手册
#tldr script
script
Make a typescript file of a terminal session.
- Start recording in file named "typescript":
script
- Stop recording:
exit
- Start recording in a given file:
script logfile.log
- Append to an existing file:
script -a logfile.log
- Execute quietly without start and done messages:
script -q logfile.log
#tldr pv
pv
Monitor the progress of data through a pipe.
- Print the contents of the file and display a progress bar:
pv file
- Measure the speed and amount of data flow between pipes (`-s` is optional):
command1 | pv -s expected_amount_of_data_for_eta | command2
- Filter a file, see both progress and amount of output data:
pv -cN in big_text_file | grep pattern | pv -cN out > filtered_file
- Attach to an already running process and see its file reading progress:
pv -d PID
- Read an erroneous file, skip errors as `dd conv=sync,noerror` would:
pv -EE path/to/faulty_media > image.img
- Stop reading after reading specified amount of data, rate limit to 1K/s:
pv -L 1K -S maximum_file_size_to_be_read
script 命令 -- terminal 录频,在 特殊
场景下结合一些编解码
和管道控制手段,会有非常实用的功能 😯
网友评论