better .bash_history?
i know we can use the history command and itll come up with like
1 ssh ...
2 ls -l
etc, is there a way to set it up to capture what the command prints out?
for example if i use custom command awe use at work lets say "db" to search database and it brings up - name - server - password and things like that, is there anything i can set in a .bash* file to capture that so to speak a more advanced bash history
Ive looked online and i cant find anything like this
Can anybody advise any solution which would fit my desire?
apologies that doesnt appear too clear i mean for all commands aswell for example bash_history will say
ping google.com
but i wish it to say something along the lines of
ping google.com
PING google.com (209.85.148.99): 56 data bytes
64 bytes from 209.85.148.99: icmp_seq=0 ttl=52 time=22.690 ms
64 bytes from 209.85.148.99: icmp_seq=1 ttl=52 time=21.933 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 21.933/22.312/22.690/0.378 ms
hopefully this is more clear
Thanks in advanced
Sam
A man who won't die for something is not fit to live.
Martin Luther King, Jr.
Bookmarks