33
votes
Accepted
How can I tell when FFMPEG is done writing a file?
Add -hls_flags temp_file to all your outputs. FFmpeg will write data to a temp file and rename once done. So then if the segment file exists, it is complete.
2
votes
Accepted
See htop tree evolve in slow-motion
Limited generic way to replay in slow motion
You can use script to record htop, like:
script -O typescript -T typescript.timing -c 'htop -t'
script will exit just after htop exits. Alternatively:
...
1
vote
Accepted
Cannot Connect VNC through SSH to Windows from Unix
Thanks to Romeo Ninov for pointing this out. When building the SSH tunnel to windows, the loopback address needs to be used, not localhost. So instead of:
ssh -L 5901:localhost:5900 username@10.0.0....
1
vote
Generate distribution of file sizes from the command prompt
Building on top of a couple of the earlier answers, a script (longer) with more detailed output.
$ cat ~/bin/fszdist
#!/bin/bash
AWK_SCRIPT='
# prettyfier
function psize(s) {
kilo = 0;
mega = ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unix × 3932linux × 1470
bash × 601
macos × 417
shell × 417
command-line × 407
ssh × 212
terminal × 201
windows × 156
ubuntu × 147
shell-script × 139
permissions × 131
find × 118
mac × 115
filesystems × 98
grep × 98
networking × 85
solaris × 82
script × 80
sed × 77
tar × 75
freebsd × 55
awk × 55
process × 53
sudo × 52