How do I get a list of all directories and files with absolute paths each line?

You can get the files with full path with this command:

find / -type f

or list files from the current directory down:

find $(pwd) -type f

There are two commands you can use along with ls if you intend just for the files in a particular directory.

  1. realpath
  2. readlink

I can't show you realpath output as i don't have it in my system.

You can make readlink to do that for you.

ls | xargs -n 1 readlink -f

WARNING: you may not get the abs path for the soft links as that will be converted to the files which are the linked to.