This does work:
server:~> history | tail -100 | grep etc 908 2018-01-17 08:53:43 cd /etc/apache2/vhosts.d/default.d/ .... ....
But this does not:
ssh root@server "history | tail -100 | grep etc"
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community