How to list files and directories to show full path / absolute path name in the shell terminal.
We can use the ls command -d option in combination with the environment variable $PWD.
Syntax
ls -d $PWD/*
Example
Use the ls command to display the absolute path names of all files or directories in the current directory.
➜ ~ ls -d $PWD/*
![](https://www.linuxcommands.site/wp-content/uploads/2020/10/image-17-1024x323.png)
Use the ls command to display absolute path names in long list format (-l).
➜ ~ ls -dl $PWD/*
This seems to break the -R flag. Do you know of a way around this?