Files
cheatsheet-tldr/tldr/~
2025-06-11 00:20:25 +00:00

22 lines
411 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ~
> 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 ~-`