{"repo":"tycho-kirchner/shournal","free":true,"listed":false,"github":"https://github.com/tycho-kirchner/shournal","clone":"git clone https://github.com/tycho-kirchner/shournal.git","description":"Log shell-commands and used files. Snapshot executed scripts. Fully automatic.","language":"C++","stars":212,"topics":["shell","bash","command-tracker","zsh","lowlevel","file-tracker","reproducible-research","computational-science","provenance","reproducibility"],"license":"GPL-3.0","category":"cli-tools","readme_excerpt":"A (file-) journal for your shell Log shell-commands and used files. Snapshot executed scripts. Fully automatic. There are two kinds of people: those who backup, and those who have never lost their data. $ SHOURNAL ENABLE $ cat demo.sh !/usr/bin/env bash echo hi tee out.log $ ./demo.sh hi $ shournal -q --wfile out.log cmd-id 2 $?=0 2022-11-08 08:46 $ ./demo.sh Working directory: /home/user 1 written file: /home/user/out.log (3 bytes) Hash: 15349503233279147316 1 read file: /home/user/demo.sh (42 bytes) Hash: 13559791986335963073 id 1 #!/usr/bin/env bash echo hi tee out.log shournal records that out.log was written by the command ./demo.sh and created a backup of the script demo.sh because it was read by the bash interpreter. shournal does not guess the files - it asks the Linux kernel. It's fast enough, see Overhead. After installation and easy setup of the shell-integration the following questions may be answered within seconds: What files were modified, read or executed by a command? Or reverse: What shell-commands were used to create/modify or read from a certain file? You executed a script. What was the script-content by the time it was called? The command read a config-file - which one, and what was in it? The command ran for a long time - can a re-execution be avoided (s. --stat )? What other commands were executed during the same shell-session? What about working directory, command start- and end-time or the exit status ($?) ? Besides output on the command-line in a hum","default_branch":null,"files":null,"tree":[],"storefront":"/r/tycho-kirchner","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tycho-kirchner/shournal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}