DEV Community

Discussion on: Shell (e.g. Bash) users before coming to Windows Terminal - which shell do you use?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Thanks. I totally forgot that I can do that, no matter cmd.exe or PowerShell.

wsl which python # /mnt/c/Users/Pacharapol W/.pyenv/pyenv-win/shims/python
Enter fullscreen mode Exit fullscreen mode

Surprisingly, this points to the correct answer.

Not to mention that these are useful

wsl du -sh *
wsl head bigfile.csv
Enter fullscreen mode Exit fullscreen mode

Though, I personally don't get the purpose of wsl touch new.txt. I know it creates or modifies timestamp, but why?

Collapse
 
ducaale profile image
Mohamed Dahir • Edited

I only have used the touch command to create new files. I am not sure either what is the purpose of modifying file timestamps.