Sodamhan.com

TL;DR

Tilde

Expand to a directory. More information: https://gnu.org/software/bash/manual/bash.html#Tilde-Expansion.

  • List the current user’s home directory contents:

ls ~

  • List the home directory contents of another user:

ls ~username

  • List the contents of the previous directory you were in:

ls ~-

This document was created using the contents of the tldr project.