---
title: Linux Fundamentals
description: A beginner's reference guide to essential Linux commands for navigating and editing files.
author: Eliy Yang
published: 2026-02-20
---

# Linux Fundamentals

## Commands
- `cd directory_name` - This allows you to change to any directory.
- `ls` - This will show you the contents of the directory you are in.
- `touch filename.txt` - This will create a text file.
- `vi filename.txt` - This will open that file so you can edit it.
  - `i` - Press i when in the file to start editing it.
  - `ESC` - Press the ESC key to exit out of editing mode.
  - `:wq` - Enter :wq to save your edits and to exit at the same time.
