ssf.1 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .Dd 2025-12-31
  2. .Dt SSF 1
  3. .Os
  4. .Sh NAME
  5. .Nm ssf
  6. .Nd simple system fetcher
  7. .Sh SYNOPSIS
  8. .Nm
  9. .Op Fl m
  10. .Op Fl s
  11. .Op Fl k Ar key
  12. .Op Fl h
  13. .Op Fl v
  14. .Sh DESCRIPTION
  15. .Nm
  16. prints a small set of system facts next to a colored ASCII logo.
  17. It uses plain POSIX interfaces and supports Linux and OpenBSD.
  18. Output includes ANSI color escape sequences.
  19. .Sh OPTIONS
  20. .Bl -tag -width Ds
  21. .It Fl m
  22. Use a pipe separator ("|") between field names and values for easier parsing.
  23. .It Fl s
  24. Show a short subset of fields: hostname, kernel, uptime, memory.
  25. .It Fl k Ar key
  26. Print only the value for the named field and exit.
  27. Known keys are:
  28. user, hostname, distro, kernel, uptime, shell, terminal, cpu, memory, load.
  29. If the key is unknown, nothing is printed.
  30. .It Fl h
  31. Show usage help and exit.
  32. .It Fl v
  33. Print the version string and exit.
  34. .El
  35. .Sh ENVIRONMENT
  36. .Bl -tag -width Ds
  37. .It Ev SHELL
  38. Used to derive the shell name.
  39. .It Ev TERM
  40. Used to display the terminal type.
  41. .El
  42. .Sh FILES
  43. .Bl -tag -width Ds
  44. .It Pa /etc/os-release
  45. Distribution name (PRETTY_NAME).
  46. .It Pa /etc/issue
  47. Fallback distribution name.
  48. .It Pa /proc/cpuinfo
  49. CPU model and core count (Linux).
  50. .It Pa /proc/meminfo
  51. Memory totals (Linux).
  52. .El
  53. .Sh NOTES
  54. On OpenBSD, CPU and memory are read via
  55. .Xr sysctl 3 .
  56. If a value cannot be determined, it is printed as "unknown".
  57. The ASCII logo is selected by substring match on the distro name;
  58. if no match is found, a generic Linux logo is used.
  59. .Sh SEE ALSO
  60. .Xr uname 1 ,
  61. .Xr sysctl 3
  62. .Sh AUTHORS
  63. Sebastian Michalk <sebastian.michalk@pm.me>