for example: when
ssh xxx@192.168.0.123 "histroy"
it get nothing,
but when
ssh xxx@192.168.0.123
and then
history
it get a lot.
any one tell me how to get the history by one line command?
|
feedback
|
This question came from our site for professional and enthusiast programmers.
| |||||||
feedback
|
|
You can cat the file that the history command reads from and then number each line:
| |||||||
feedback
|