# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# + [markdown] slideshow={"slide_type": "slide"}
# # Basic *nix Commands - Users & System
#

# + [markdown] slideshow={"slide_type": "slide"}
# # Who, where, what, when...?
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## Structure of a UNIX command
#
# $$
# \overbrace{\mathtt{ls}}^{\text{Command}} \quad \underbrace{{\overbrace{\mathtt{-s -t}}^{\text{Options}} \quad \mathtt{arg1 \quad arg2}}}_{\text{Arguments}}
# $$
#

# + [markdown] slideshow={"slide_type": "subslide"}
# # # Who?
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## Machine and OS
#
# * `hostname` - print the machine's hostname
# * `uname` -  print other system information
#     * `uname`- print OS name
#     * `uname -a` - print **a**ll system information
#     * `uname -m` - print **m**achine hardware
#     * `uname -n` - same as `hostname`
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## Users
#
# * `passwd` - change your **passw**or**d**
# * `who` - print logged in users (see also `users`)
#     * `who am i` - print your own username `whoami`
# * `finger` - display information about users
#

# + [markdown] slideshow={"slide_type": "subslide"}
# # # What?
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## List
#   
# * `ls` - **l**i**s**t directory contents
#     * `ls -a` - list **a**ll
#     * `ls -A` - list **A**lmost all
#     * `ls -l` - **l**ong listing format
#

# + [markdown] slideshow={"slide_type": "fragment"}
# * Multiple options can be combined, e.g.
#  * `ls -l -A` $\equiv$ `ls -lA`
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## Environment variables
#
# * The system uses *environment variables* to store system and user information
#     * define with `export MY_NEW_VAR='myVAr'` (**`bash`** shell)
#     * access with `$`, e.g. `echo $MY_NEW_VAR`
#

# + [markdown] slideshow={"slide_type": "subslide"}
# # # Where?
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## Navigation commands
#
# * `pwd` - **p**rint **w**orking **d**irectory 
# * `cd` - **c**hange **d**irectory
#     * `cd $HOME` or better, `cd ∼`, even better `cd`
#     * `cd ∼-` - go to previous directory 
#     * `cd ..` - go up one level
#     
# * Absolute *paths* (directory structures) start with `/`, the *root* directory
#

# + [markdown] slideshow={"slide_type": "subslide"}
# # # When?
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## Date
#
# * `date` -- display the full date
#     * `date +%m` – the `+%m` is a format specifier instruction to only print the month number
#     * `date +%h` – the `+%h` is a format specifier instruction to only print the month string 
#

# + [markdown] slideshow={"slide_type": "slide"}
# # Getting Help
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## `man` documentation
#
# * `man ls` - brings up the `man`ual pages for `ls`
#

# + [markdown] slideshow={"slide_type": "fragment"}
# ## Use Google!
#
# * Use good keyword strings "Linux ls" or "Unix echo"
#

# + hide_input=true slideshow={"slide_type": "skip"} language="javascript"
# function hideElements(elements, start) {
#     for(var i = 0, length = elements.length; i < length;i++) {
#         if(i >= start) {
#             elements[i].style.display = "none";
#         }
#     }
# }
#
# var prompt_elements = document.getElementsByClassName("prompt");
# hideElements(prompt_elements, 0)

StarcoderdataJupyterScriptsDedupFiltered