title: `ls -l` for all parent directories
body: <p>I want to get a list of all directory permissions from current folder to <code>/</code>. For example, for the directory: <code>/var/lib/program/subfolder</code>, I want an output such as:</p>
  <pre class="lang-sh prettyprint-override"><code>$ pwd
  /var/lib/program/subfolder
  $ magic_ls_-l_command somefile
  drwxr-xr-x 10 root root 4096 May 15 20:20 var
  drwxr-xr-x 10 root root 4096 May 15 20:20 lib
  drwxrwxr-x 10 root user 4096 May 16 20:21 program
  drwxrwxr-x 10 root user 4096 May 16 20:21 subfolder
  -rwxrwxr--  1 root user 4096 May 16 20:22 somefile
  </code></pre>
  <p>I don't care about the order (from <code>/var</code> to <code>/subfolder</code> or the other way around), the number of hard links or even the date. I just wrote them down to emulate the <code>ls -l</code> output. Also, I don't care how each filename in printed (<code>/var</code> and <code>/lib</code>, <code>var</code> and <code>lib</code>, or <code>/var</code> and <code>/var/lib</code>). I'm just interested in the ownership of each file/directory in the path from the choosen file or <code>pwd</code> to <code>/</code>.</p>
  <p>In case I should install some program, I'm under Ubuntu 20.04.</p>