我需要编写一个 shell 脚本,该脚本只有从当前登录用户的主目录运行时才能执行,并且我不知道如何从脚本本身检查它。任何帮助将不胜感激。
unix bash shell-script ubuntu
bash ×1
shell-script ×1
ubuntu ×1
unix ×1