Bash そのファイルやディレクトリはありません

Bash そのファイルやディレクトリはありません

SSH端末を介して別のコンピュータに接続していますが、接続できますが、2行が表示され、私を狂わせます。

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted applicable law.
Last login: Thu May 23 12:45:03 2019 from 192.168.45.45
bash: /home/user/newUser: No such file or directory
bash: /home/user/newUser: No such file or directory

newUserはそれに属していないスクリプトですが、この行をどのように削除するのか疑問に思います。

$ grep newUser ~/.bashrc ~/.profile ~/.bash_profile ~/bash.login ~/.bash_aliases /etc/bash.bashrc /etc/profile /etc/profile.d/* /etc/environment 2>/dev/null
/home/user/.profile:bash /home/olduser/newUser
/home/user/.profile:bash /home/olduser/newUser

ベストアンサー1

~/.profile問題のファイルはリモートシステムにあります。お気に入りのテキストエディタでファイルを開くだけです。

nano ~/.profile

次の行を見つけます(行が2回繰り返されるようです)。

bash /home/olduser/newUser

削除してください。それでは効果があるでしょう。

おすすめ記事