go-coreutils
go-coreutils copied to clipboard
ls /root says "No such file or directory." instead of "Permission denied"
I did ls on /root from my user expecting that the command would show "Permission Denied". Instead it prints "No such file or directory".
The coreutils ls command indicates that I do not have permission to list /root folder by printing "Permission Denied".
I am new to Go. And am looking at this project in order to learn. Could someone please fix it.
What OS are you doing running this command on? I'm aware that is is a linux type OS but, exactly which OS?
It was Debian 9 at the time.
does /root exist?
check with cd / and then run ls