# Traverse & Enumerate

<table data-header-hidden data-full-width="true"><thead><tr><th width="299">Command</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:yellow;"><code>cd ..</code></mark></td><td>Move Up One Directory Level.</td></tr><tr><td><mark style="color:yellow;"><code>cd ~</code></mark></td><td>Change to Home Directory.</td></tr><tr><td><mark style="color:yellow;"><code>cd -</code></mark></td><td>Change to Previous Directory.</td></tr><tr><td><mark style="color:yellow;"><code>pushd and popd</code></mark></td><td>Manage directory stack for easy backtracking.</td></tr><tr><td><mark style="color:yellow;"><code>pushd -R &#x3C;dir></code></mark></td><td>Enter a directory and push it onto the stack, recursively entering subdirectories.</td></tr><tr><td><mark style="color:yellow;"><code>pwd</code></mark></td><td>Print Working Directory.</td></tr><tr><td><mark style="color:yellow;"><code>tree &#x3C;dir></code></mark></td><td>Display Directory Structure.</td></tr><tr><td><mark style="color:yellow;"><code>tree &#x3C;dir> -d</code></mark></td><td>Only directories.</td></tr><tr><td><mark style="color:yellow;"><code>tree &#x3C;dir> -L &#x3C;level></code></mark></td><td>Limit depth.</td></tr><tr><td><mark style="color:yellow;"><code>tree &#x3C;dir> -F</code></mark></td><td>Append file type indicators to filenames.</td></tr><tr><td><mark style="color:yellow;"><code>realpath &#x3C;relative_path></code></mark></td><td>Resolve Relative Paths.</td></tr><tr><td><mark style="color:yellow;"><code>readlink &#x3C;symbolic_link></code></mark></td><td>Display the Target of a Symbolic Link.</td></tr></tbody></table>
