How can I make the ls
command show a file's full path instead of just its filename? With all its options, there must be a way, right?
How can I make the ls
command show a file's full path instead of just its filename? With all its options, there must be a way, right?
Here is one option for doing this.
This is another way for individual files:
I usually use the
find
command:that's what worked for me.
Use
*.mp3
if you want to list just mp3 files, for example. I did this to make a playlist.keep the
""
if there's spaces in the outputs (the path to the files)