erol.name
  • Linux
  • Windows
  • Retro gaming
  • C64
  • Mobile
  • Raspberry Pi

erol.name

Posted on 17. 09. 201418. 04. 2017 by erol

Log each command in bash history after execution

Put this into ~/.bashrc file of your account (if the file does not exist, you create it):

shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"

In order for this to start working you need to log out and in again.

CategoriesLinux, Tips Tagsbash, bashrc, command, history, linux, logging, login

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous PostPrevious How to get recommended key_buffer_size in MySQL
Next PostNext Configure SSH client to keep connection alive in Linux

Recent Posts

  • Force Brave browser to use video decoding acceleration in Virtualbox running Debian 13 guest operating system
  • Install mc (midnight commander) on Valve Steam Deck
  • Zip individual files by extension in separate zip file with the same filename and zip extension
  • Libretro vs MAME romset mapping
  • Sort du output by folder size

Recent Comments

  • simone on Manually add files and folders to ownCloud
  • erol on How to additionally clean-up Kodi MySQL database from unwanted entries
  • John on How to additionally clean-up Kodi MySQL database from unwanted entries
  • jackd on Switch axis in pifba retropie emulator configuration
  • polv on Select and hide unmounted drive icons from Xfce desktop

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2007-2024 by Erol Tahirović