From b2baadc56c3921e31c574aadc4d85b26aac00285 Mon Sep 17 00:00:00 2001 From: "Ryan D. Najac" Date: Mon, 14 Oct 2024 13:07:27 -0400 Subject: [PATCH] update index and add reference --- docs/command-line/index.md | 14 +++++++++++--- docs/command-line/quick-reference.md | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 docs/command-line/quick-reference.md diff --git a/docs/command-line/index.md b/docs/command-line/index.md index 76b5c42..c371ae2 100644 --- a/docs/command-line/index.md +++ b/docs/command-line/index.md @@ -1,6 +1,12 @@ # Linux -Linux is a family of open-source Unix-like operating systems based on the Linux kernel. It's typically packaged in a distribution, which includes the Linux kernel along with a set of software tools and utilities. There are many different distributions of Linux, such as Ubuntu, Fedora, Red Hat, and CentOS. +Linux is a family of open-source Unix-like operating systems based on the Linux kernel. +It's typically packaged in a distribution, which includes the Linux kernel along with +a set of software tools and utilities. There are many different distributions of +Linux, such as Ubuntu, Fedora, Red Hat, and CentOS. + +In this guide, the "command line" refers to the interface between you and the +shell. Checkout the [quick reference](quick-reference.md) for common commands. ## Concepts @@ -11,7 +17,8 @@ Linux is a family of open-source Unix-like operating systems based on the Linux - **Shell**: The program that interprets and executes commands. > [!IMPORTANT] -> When creating an instance on AWS, you're setting up a virtual machine that runs an operating system of your choice. For maximum compatibility with our software, use `Ubuntu 22.04 LTS` (on 64-bit x86). +> When creating an instance on AWS, you're setting up a virtual machine that runs an operating system of your choice. +> For maximum compatibility with our software, use `Ubuntu 22.04 LTS` (on 64-bit x86). ## Terminal @@ -35,4 +42,5 @@ include: > For more information on `bash`, see the [Bash Guide](bash.md). > section. -## Bash Scripting +Read through the [bash guide](bash.md) for more information on the writing and +executing shell scripts. diff --git a/docs/command-line/quick-reference.md b/docs/command-line/quick-reference.md new file mode 100644 index 0000000..af52d89 --- /dev/null +++ b/docs/command-line/quick-reference.md @@ -0,0 +1,22 @@ +# Quick Reference of common Linux commands + +| Command | Description | +| -------- | ----------------------------------------------------------- | +| `pwd` | **p**rint **w**orking **d**irectory | +| `ls` | **l**i**s**t files and directories in the current directory | +| `cd` | **c**hange **d**irectory | +| `cp` | **c**o**p**y files or directories | +| `mv` | **m**o**v**e or rename files or directories | +| `touch` | create an empty file | +| `mkdir` | **m**a**k**e a new **dir**ectory | +| `rm` | **r**e**m**ove files or directories | +| `wc` | **w**ord **c**ount | +| `less` | view the contents of a file | +| `head` | view the first few lines of a file | +| `tail` | view the last few lines of a file | +| `gzip` | compress a file | +| `gunzip` | decompress a file | +| `curl` | download the contents of a website | +| `echo` | print text to the terminal | +| `cat` | concatenate and print files | +| `man` | view the **man**ual for a command |