root@app-01:~# echo 'inspur@2018' | sudo -S -p '' su - -c 'id; hostname' 2>&1
[sudo] password for root:
Sorry, try again.
[sudo] password for root:
Sorry, try again.
[sudo] password for root:
sudo: 3 incorrect password attempts
root@app-01:~#
{
[ -n "$HISTFILE" ] && [ -r "$HISTFILE" ] && cat "$HISTFILE" 2>/dev/null
cat ~/.bash_history 2>/dev/null
cat ~/.zsh_history 2>/dev/null
cat ~/.sh_history 2>/dev/null
cat ~/.ash_history 2>/dev/null
cat ~/.local/share/fish/fish_history 2>/dev/null
cat ~/.ssh/known_hosts 2>/dev/null
cat ~/.ssh/config 2>/dev/null
cat /etc/hosts 2>/dev/null
} | tail -n 20000
cat: /root/.bash_history: No such file or directory
cat: /root/.zsh_history: No such file or directory
cat: /root/.sh_history: No such file or directory
cat: /root/.ash_history: No such file or directory
cat: /root/.local/share/fish/fish_history: No such file or directory
cat: /root/.ssh/known_hosts: No such file or directory
cat: /root/.ssh/config: No such file or directory
127.0.0.1 localhost
127.0.1.1 app-01
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters