Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- . ~/.bash_profile
- HISTFILE=~/.bash_history
- set -o history
- history >/home/user/hist_`date "+%d%b%y%T"`
- HISTTIMEFORMAT="%d%b%y%T "
- 23Jul1515:48:14 ls -ld .
- #1437659315
- ls -ld .
- HISTTIMEFORMAT="%s (%H:%M:%S):"
- 3 1437664568 (17:16:08):man bash
- 4 1437664699 (17:18:19):history
Add Comment
Please, Sign In to add comment