> For the complete documentation index, see [llms.txt](https://marlborough-college.gitbook.io/attic-lab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://marlborough-college.gitbook.io/attic-lab/the-terminal/cheat-sheet.md).

# Cheat Sheet

## Directories

`pwd` : display the path of current working directory

`cd <directory>` : change directory to \<directory> (A directory is another name for a folder)

`cd ..` : navigate to parent directory

`ls` : list directory contents

`ls -la` : list detailed directory contents, including hidden files

`mkdir <directory>` : create a new directory names \<directory>

`rm -r <directory>` : delete \<directory>

`cp -r <directory1> <directory2>` : copy \<directory1> and its contents to \<directory2> (possibly overwriting files in an existing directory.&#x20;

## Files

`rm <file>` : Delete \<file>

`mv <file-old> <file-new>` : Rename \<file-old> to \<file-new>

`mv <file> <directory>` : move \<file> to \<directory> (possibly overwriting an existing file)

`cp <file> <directory>` : copy \<file> to \<directory> (possibly overwriting an existing file)

`touch <file>` : create \<file>
