What is Nostr?
nixCraft 🐧 /
npub1esm…xjlr
2023-10-11 18:20:28

nixCraft 🐧 on Nostr: Try running the bash history command over ssh, and it will not work: ssh -t ...

Try running the bash history command over ssh, and it will not work:
ssh -t user@hostA -- "bash -ic 'history'"

Instead, you need:
ssh -t user@hostA -- "cat ~/.bash_history"
ssh -t user@hostA -- "cat ~/.bash_history | grep something"

#Unix #Linux #macOS #FreeBSD
Author Public Key
npub1esmepyc8y2l6w03glx325zpjwp5ggvzuhqrg0csfylrevrdejxzsnexjlr