Open natesilva opened 7 years ago
-l is also not the correct answer, so this is partially valid.
I have issues too.. there is just one file in the directory or it is not working. The output says there are 24 files inside the directory?
ls -la is not accepted .. Is this correct ?
Here is my output:
bash(0)> ls -la total 24 drwxr-xr-x. 2 1000 1000 4096 Feb 6 15:21 . drwxr-xr-x. 32 1000 1000 4096 Feb 6 15:21 .. -rw-r--r--. 1 1000 1000 107 Feb 6 17:45 README
24 is not the number of files. See http://stackoverflow.com/questions/7401704/what-is-that-total-in-the-very-first-line-after-ls-l
Wah.. Sorry, my fault!
Also acceptable and simple enough that they warrant being answers for such a beginner question:
ls -1
(that's one, not el)find . -type f
+1 ls is not correct if you have more than 1 file but the site accepts.
Summary
In the
list_files
challenge, the instructions say:The expected response is
ls
.This is wrong:
ls
does not list files one file per line. It lists multiple files per line. To list one file per line you would need the-l
flag (ls -l
).Typical
ls
output looks like this:Clearly that does not meet the challenge requirements.
Either change the challenge description to omit “one file per line” or change the answer to require
ls -l
.Steps to reproduce
https://cmdchallenge.com/?ref=producthunt#/list_files
ls -l
(the correct answer)ls
(an incorrect answer)