Hi Opensuse People,
I was just wondering how you print out the history of all the commands you entered at a terminal and append to a file…
/jlar
Hi Opensuse People,
I was just wondering how you print out the history of all the commands you entered at a terminal and append to a file…
/jlar
Simple and non-elegant: history > myhistory.txt
edit: if you want to append use two pipes; history >> myhistory.txt
Thanks very much…
that’s not a pipe, it’s a redirector that’s a pipe: |
hehehe… true, good thing I never post these things where others can read it.
Thanks,
Wj
history command reads ~.bash_history file. U can use this file too.
HTH,
Vinu