Absolute path with ls?

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?


Solution 1:

Here is one option for doing this.

ls -d $PWD/*

Solution 2:

This is another way for individual files:

readlink -e filename

Solution 3:

I usually use the find command:

find /dir -type f -name "*"