history 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .TH HISTORY 1
  2. .SH NAME
  3. history \- print file names from the dump
  4. .SH SYNOPSIS
  5. .B history
  6. [
  7. .B -vDu
  8. ] [
  9. .B -d
  10. .I dumpfilesystem
  11. ] [
  12. .B -s
  13. .I yyyymmdd
  14. ]
  15. .I files ...
  16. .SH DESCRIPTION
  17. .I History
  18. prints the names, dates, and sizes, and modifier of all versions of the named
  19. .IR files ,
  20. looking backwards in time,
  21. stored in the dump file system.
  22. If the file exists in the main tree, the first line of output will be its current state.
  23. For example,
  24. .IP
  25. .EX
  26. history /adm/users
  27. .EE
  28. .PP
  29. produces
  30. .IP
  31. .EX
  32. May 14 15:29:18 EDT 2001 /adm/users 10083 [adm]
  33. May 14 15:29:18 EDT 2001 /n/dump/2001/0515/adm/users 10083 [adm]
  34. May 11 17:26:24 EDT 2001 /n/dump/2001/0514/adm/users 10481 [adm]
  35. May 10 16:40:51 EDT 2001 /n/dump/2001/0511/adm/users 10476 [adm]
  36. ...
  37. .EE
  38. .PP
  39. The
  40. .B -v
  41. option enables verbose debugging printout.
  42. .PP
  43. The
  44. .B -D
  45. option causes
  46. .IR diff (1)
  47. .B -n
  48. to be run for each adjacent pair of dump files, while
  49. .B -b
  50. runs
  51. .IR diff
  52. .BR -nb .
  53. .PP
  54. The
  55. .B -u
  56. option causes times to be printed in GMT (UT) rather than local time.
  57. .PP
  58. The
  59. .B -d
  60. option selects some other dump filesystem such as
  61. .IR /n/bootesdump .
  62. .PP
  63. Finally, the
  64. .B -s
  65. option
  66. sets the starting (most recent) date for the output.
  67. .SH EXAMPLES
  68. .PP
  69. Check how often a user has been logged in.
  70. .IP
  71. .EX
  72. history /usr/ches/tmp
  73. .EE
  74. .SH FILES
  75. .B /n/dump
  76. .SH SOURCE
  77. .B /sys/src/cmd/history.c
  78. .SH SEE ALSO
  79. .IR fs (4)
  80. .br
  81. .IR yesterday (1)