From c1a214b5ed54172220120f030098b9d3c8a190f8 Mon Sep 17 00:00:00 2001 From: Hugo Tavares Date: Tue, 12 Mar 2024 17:12:12 +0000 Subject: [PATCH] update FAQ --- materials/99-extras/01-cheatsheet.md | 4 +++- materials/99-extras/02-wsl.md | 4 +++- materials/99-extras/03-faqs.md | 16 ++++++++++++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/materials/99-extras/01-cheatsheet.md b/materials/99-extras/01-cheatsheet.md index 903284c..045fe4d 100644 --- a/materials/99-extras/01-cheatsheet.md +++ b/materials/99-extras/01-cheatsheet.md @@ -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). diff --git a/materials/99-extras/02-wsl.md b/materials/99-extras/02-wsl.md index 5c2a0c5..1884b4d 100644 --- a/materials/99-extras/02-wsl.md +++ b/materials/99-extras/02-wsl.md @@ -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. diff --git a/materials/99-extras/03-faqs.md b/materials/99-extras/03-faqs.md index 27b840d..135af14 100644 --- a/materials/99-extras/03-faqs.md +++ b/materials/99-extras/03-faqs.md @@ -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 @@ -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.