Search code examples
linuxbashshellazureazure-cloud-shell

Azure cloud shell always shows "command not found"


Azure cloud shell shows "command not found" no matter what command I enter - sudo, bash, az, apt-get etc. I suppose this is due to the fact I have run these commands:

sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock

sudo rm /var/lib/dpkg/lock

Is there a way to restore the cloud shell or only Azure staff has this permissions?


Solution

  • Cloud Shell offers a browser-accessible, pre-configured shell experience for managing Azure resources without the overhead of installing, versioning, and maintaining a machine yourself.

    Here us the tools in cloud shell, please refer to it.

    Is there a way to restore the cloud shell or only Azure staff has this permissions?

    In cloud shell, it seems we have no permission to do some configure.

    Maybe we can delete this cloud shell(in resource group), then re-install it.