for example: when
ssh email@example.com "histroy"
it get nothing,
it get a lot.
any one tell me how to get the history by one line command?
migrated from stackoverflow.com Oct 26 '11 at 19:51
This question came from our site for professional and enthusiast programmers.
You can cat the file that the history command reads from and then number each line: