handson-ml icon indicating copy to clipboard operation
handson-ml copied to clipboard

why i can`t run this code :(ls -l tf_logs/run*)

Open BahaaKattan111 opened this issue 6 years ago • 1 comments

hi , on page 302 there is a code when I run it , anaconda prompt telling me that :

C:\Users\lenovo.DESKTOP-C2FPR7I> ls -l tf_logs/run* 'ls' is not recognized as an internal or external command, operable program or batch file

please help me and thanks.

BahaaKattan111 avatar Oct 25 '19 18:10 BahaaKattan111

Hi @BahaaKattan111, Thanks for your question. ls works on Linux and MacOSX, and I believe it also works in some Windows shells (like the PowerShell), but I don't use Windows so I'm not 100% sure. The equivalent command on Windows is dir. You must also replace slashes / with backslashes \. So I think the command on Windows is:

dir tf_logs\run*

Note that environment variables like $ML_PATH should also be replaced with %ML_PATH%.

Hope this helps, Aurélien

ageron avatar Oct 27 '19 18:10 ageron