Skip to content

Commit

Permalink
update FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
tavareshugo committed Mar 12, 2024
1 parent 00cbcd2 commit c1a214b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion materials/99-extras/01-cheatsheet.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
title: "Unix Cheat Sheet"
pagetitle: "Unix Shell"
---

# Unix Cheat Sheet {.unnumbered}

This document gives a brief summary of useful Unix commands.
Anything within `{` and `}` indicates a user-provided input (`{` and `}` should not be included in the commands).

Expand Down
4 changes: 3 additions & 1 deletion materials/99-extras/02-wsl.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
title: "Unix on Windows"
pagetitle: "Unix Shell"
---

# Unix on Windows {.unnumbered}

In [Data & Setup](../../setup.md) we recommended installing _MobaXterm_ as a way to have a Linux-like terminal on Windows.
While easy to install, _MobaXterm_ is not a fully-featured Linux environment.
This means that if you want to run specialised software which only runs on Linux (e.g. in the field of bioinformatics or machine learning), then _MobaXterm_ is quite limited.
Expand Down
16 changes: 12 additions & 4 deletions materials/99-extras/03-faqs.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
---
title: "Unix Frequently Asked Questions"
pagetitle: "Unix Shell"
---

### This document answers some questions asked frequently during the Unix and shell scripting lessons and is hopefully helpful as a reference. Please do ask any and all questions you may have during the session (please use the Google Doc for online sessions).
# Frequently Asked Questions {.unnumbered}

:::{.callout-tip}
#### Overview

This document compiles answers to questions asked frequently during our live courses, and is hopefully helpful as a reference.
:::

## Shell 101

### What is a kernel and what is a shell?
The kernel is the core component of an operating system (OS). The shell is the user interface that interacts with the kernel.

### What are some common shells?
The Bourne shell (bsh) was the first default shell on Unix systems. bash stands for Bourne again shell and is an extension of the Bourne shell. If you're a Mac user, you may see the beginning of your terminal line says zsh, standing for the Z shell which is another shell created as an extension for bsh.Some other popular shells are csh and Debian.
The "Bourne shell" (_bsh_) was the first default shell on Unix systems. _bash_ stands for "Bourne again shell" and is an extension of the Bourne shell.
If you're a Mac user, you may see the beginning of your terminal line says _zsh_, standing for the "Z shell", which is another shell created as an extension for _bsh_.

## Terminal Syntax, Shortcuts, and Quick Fixes

Expand All @@ -19,7 +27,7 @@ Every terminal environment looks different and the colour scheme varies in diffe
Generally speaking, different file/folder types are indicated by different colours. For example, in our course terminal, blue files indicate it is a folder, green indicates .txt files, and red indicates a zipped file. Please note once again that this varies in all systems.

### I don’t see the `$` at the beginning of the line anymore, what can I do?
Ctrl+C (aborts current task and returns control to the user) or Ctrl+Z (pauses the task running currently and can return control to the user)
Ctrl + C aborts the current task and returns control to the user.

### How can I autocomplete names of folders/paths in the terminal?
You can use the “Tab” key to autocomplete names of folders/paths. If there are multiple files with the same beginning, eg: Desktop and DesktopFolder, it will autocomplete until the “p” in Desktop as that is the end of the common string (please remember the terminal is case-sensitive). It will not autocomplete further until it sees a character that would make one name different from the other. You can press “Tab” twice to see what options you have to autocomplete. In this case, you could type DesktopF and then use the “Tab” key to autocomplete to DesktopFolder.
Expand Down

0 comments on commit c1a214b

Please sign in to comment.