3 ms·
Back when security was less of a thing and the default $PATH usually included the current directory: echo 'echo ls: command not found' >ls; chmod 755 ls
by gpvos 5y ago
Back when security was less of a thing and the default $PATH usually included the current directory: echo 'echo ls: command not found' >ls; chmod 755 ls
- mrmattyboy 5y agoHaha nice, so maybe: notfound() { echo "$1: $2: No such file or directory"; } f_cat() { notfound cat "$1"; } f_ls() { notfound ls "$1"; } alias cat=f_cat alias ls=f_ls :D And then why not obfuscate ;) . <(cat <<'EOF' | base64 -d bm90Zm91bmQoKSB7IGVjaG8gIiQxOiAkMjogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeSI7IH0K Zl9jYXQoKSB7IG5vdGZvdW5kIGNhdCAiJDEiOyB9CmZfbHMoKSB7IG5vdGZvdW5kIGxzICIkMSI7 IH0KYWxpYXMgY2F0PWZfY2F0CmFsaWFzIGxzPWZfbHMK EOF )