Error: No such file or directory when using cd command

Reby Koshy Alex 0 Reputation points
2024-11-14T04:49:05.2466667+00:00

While trying to navigate to a log file using the cd command, the following error occurs:

kudu_ssh_user@0055a7879e38:~/logfiles$ cd 2024_10_31_ln0sdlwk000IO4_docker.log 

-bash: cd: 2024_10_31_ln0sdlwk000IO4_docker.log: No such file or directory

The log file is present as shown in the ls -l output:

-rwxrwxrwx 1 nobody nogroup 72476 Oct 31 04:45 2024_10_31_ln0sdlwk000IO4_docker.log

What could be the reason for this error?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,022 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 22,401 Reputation points Microsoft Employee
    2024-11-18T06:16:54.5566667+00:00

    @Reby Koshy Alex Thanks for your patience and for offline discussion. I am summarizing our offline discussion and posting the same as answer for the benefit of other community members.

    Issue: Customer is unable to read or delete the log file in Linux app service from Kudu console.

    Solution:

    • Inorder read the docker.log files you need to use cat < _docker.log> file name instead of using cd.
    • To delete the log files suggested them to use rm -f <_docker.log>

    Hope this helps, let me know if you have any further questions on this.

    Please accept as "Yes" if the answer is helpful so that it can help others in the community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.