Skip to content

Instantly share code, notes, and snippets.

function sudo_() {
args="$@"
echo $args
flag=0
sudo touch /usr/bin/samplesec.txt &> /dev/null
if [ "$?" -eq 0 ]; then
flag=1
sudo $args
fi