Rarely I cross-post messages but for me this information was like a revelation so … have patience.
How to get the current reading position in a file of a process on your machine ?
This information can be useful in an avalanche of circumstances
- you are importing 10G dump.sql into your new database
- a friend is downloading your last recorded song (copyright free, obviously ) from your home web-server and you want to know how many bytes you must still send to him before you can turn off the laptop
- how long you must wait before a
grepcommand finishes its work
cat /proc/<process pid>/fdinfo/<file_handle>