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.
ls -d $PWD/*
This is another way for individual files:
readlink -e filename
I usually use the
find /dir -type f -name "*"
ls -d "`pwd`"/*
that's what worked for me.
*.mp3 if you want to list just mp3 files, for example. I did this to make a playlist.
"" if there's spaces in the outputs (the path to the files)