Asked
Active
Viewed 475 times
-5
-
3Because they are in another directory? – MikeCAT May 01 '16 at 11:44
-
There is a file in the location Desktop/hello that I want to compile, but the file is not showing up. My only theory is that some other program may be moving the file but the file is clearly there. – Andy Le May 01 '16 at 11:45
-
2Can't you copy-paste the terminal output instead of liking us to that image? – Maroun May 01 '16 at 11:46
-
The typical UNIX command `ls` won't show files that aren't in the current directly without `-R` option. Yes, the reason is that they are not where the command scanned for files. – MikeCAT May 01 '16 at 12:43
2 Answers
1
Why are my files not showing up?
Because they are not in the current directory! They are in a different directory. Based on this comment ...
There is a file in the location Desktop/hello that I want to compile, but the file is not showing up.
... I am guessing that the file will show up if you run ls -l Desktop
when you are in your home directory. Or if you happen to be in another directory then ls -l ~/Desktop
.

Stephen C
- 698,415
- 94
- 811
- 1,216
0
ls and ls -a will display contents of the current directory in which you are. Does pwd command show the directory Desktop u der which you are expecting the files to be? If not you will have to CD to that directory first and then run ls command.

Vishal
- 549
- 3
- 13