#!/bin/bash sudo history -c;
然后
sudo bash test
反映:
sudo : command not found
但如果
sudo history -c
是可行的
采纳一下,我告诉你