I used a raspberry pi with Raspbian installed. This board was used for a long experiment, and I want to record all logs. Then on a different PC, what could I do to check the histories?
Your question is a little vague, as to which logs you want, but most are in
/var/log and old logs are rolled over (for varying periods - which is configurable) .
Below is a script I use to list apt-get history. You could adapt this to list any logs your are interested in.
This could be run remotely with changed paths; I usually run it over
#!/bin/bash #Print apt-get history # 2017-08-06 for logf in $(ls /var/log/apt/history.log.*.gz | sort -rV) ; do zcat $logf | grep -E "Start-Date:|Commandline:" ; done # Include most recent grep -E "Start-Date:|Commandline:" /var/log/apt/history.log
dmesg -T lists the kernel log, although this only shows recent entries.
last -x shows system shutdown entries