0

I need to export all commands and the commands' log of a user in a Linux distribution like Debian.
Any idea?

5
  • What have you tried so far? Dec 23, 2019 at 11:10
  • 1
    Does this answer your question? History with bash file Dec 23, 2019 at 11:10
  • 1
    Depends what you mean by all commands, and what you mean by Linux. Linux is the kernel. This name is often used in error to mean the whole system Gnu/Linux plus the rest. Is your question: How do I save, to a file, all of the command that a user runs in the shell (bash)? Also does it have to be secure? (prevent the user from deleting entries)? Dec 23, 2019 at 13:17
  • It's absolutely not clear what you're after, but try using the script command; you will have in typescript both the commands you entered and their output.
    – user313992
    Dec 25, 2019 at 6:19
  • Yes, thank you all.
    – M. Rostami
    Dec 25, 2019 at 17:13

0

Browse other questions tagged .