Debian10's bash shell now says 'command not found'...

Asked 2 years ago, Updated 2 years ago, 123 views

All commands now appear command not found on the Debian 10 bash shell...

How can we solve this problem?Is there only a reinstallation?
Please let me know.

linux bash debian

2022-09-30 19:10

1 Answers

The questioner's Another question has done the following, but it seems that all existing PATHs have been lost.

export PATH=$aw-server:/home/yusuke/.local/bin
export PATH=$aw-watcher-afk:/home/yusuke/.local/bin
export PATH=$aw-watcher-window: /home/yusuke/.local/bin

In other words, when you need to write export PATH="/path/to/new/directory:$PATH" in the form of an existing PATH, the contents of the PATH are almost gone and you can't find any executable files.

If you have not specifically overwritten configuration files such as ~/.profile, you should be able to restart the shell.If you have overwritten it, you can start Bash without loading the existing .profile in /usr/bin/env-i/bin/bash --norc--noprofile and so on to correct the configuration file.


2022-09-30 19:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.