I need to re-setup history command to show both date, time and the IP address of user's from where they logged in to our server and execute a particular command. Is there any way to show these info with the history command?
The Sample Output would be:
Sat 04 Nov 2017 06:20:20 AM +03 111.111.111.111 : pwd
Sat 04 Nov 2017 06:20:20 AM +03 111.123.123.111 : mkdir test
Sat 04 Nov 2017 06:20:20 AM +03 123.123.44.32 : pwd
Help me to setup these changes via either .bash_profile or .bashrc