Show IP address in history

On Linux Server, history command shows previously executed commands. If you have many people working on a server, it is better log IP address of the user who run the command along with time for security reason. To log, IP and date, create file

In the file, add

Make it executable

Create […]

Read More…

history

To get history show time

history -a will append your current session history to the content of the history file. history -w will replace the content of the history file with your current session history. Linux Server show IP address in history […]

Read More…