Subj : Linux Question To : nugax From : apam Date : Sun Apr 09 2023 15:02:19 > What file would you suggest a dev reads to determuine linux distro and > ver? os > release? > trying to figure out best way to determine linux/bsd os. for linux distros as al pointed out /etc/os-release or whatever, however if you want to work out bsd (not linux) uname (sys/utsname.h) will tell you the name of the OS eg. Linux / FreeBSD / NetBSD / OpenBSD / SunOS etc ... If you're using it to put in a tear line, I'd suggest keeping it fairly vague, or at least optional. Not everyone wants the world to know the exact version they're running and what exploits are available since they last updated the os. Yes yes, security through obscurity etc.. but not everyone sits infront of their computer 24/7 to patch it the instant an expolit is discovered. eg. Debian GNU/Linux sure. Debian GNU/Linux v5.12.1-patchlevel5.1-etc not so much. Andrew --- Talisman v0.47-dev (Windows/x64) * Origin: Smuggler's Cove - Private BBS (21:1/182) .