Question: How to trap commands entered on the Unix command prompt? I want to trap any command(s) entered on the LInux command prompt. This would help to maintain my own version of .sh_history file.

Answer: a background process, can apply hooks for keyboard and keeps them all.\nyou can launch that process upon login.\neither through per user or all user login script.
This question from the Yahoo Q&A forum is categorized in the topic: Entertainment & Music