Skip to content
Snippets Groups Projects

Update "command line" lecture

Merged Lukas Kluft requested to merge command-line into main
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -31,7 +31,7 @@ subtitle: "Controlling local and remote machines"
```{.sh}
vim test.txt
```
* Basic usage: hit {{< kbd i >}} to activate _insert_ mode. Type something and hit {{< kbd Esc >}} to fall back into _normal_ mode. Save and close the file using {{< kbd :wq >}}.
* Basic `vim` usage: hit {{< kbd i >}} to activate _insert_ mode. Type something and hit {{< kbd Esc >}} to fall back into _normal_ mode. Save and close the file using {{< kbd :wq >}}.
## Scripts
@@ -90,7 +90,7 @@ Different ways to work on a cluster depending on the task:
* Housekeeping/compiling (login nodes)
* Interactive sessions (compute nodes, `salloc`)
* Batch scriptsscripts (compute nodes, `sbatch`)
* Batch scripts (compute nodes, `sbatch`)
* External services (e.g. _Jupyterhub_)
## SSH
@@ -217,7 +217,7 @@ Different ways to work on a cluster depending on the task:
forward graphical user interfaces (GUIs) from the server
* Install an X-server on your local machine (e.g. XQuartz)
* Pass the `-X` option to your `ssh` command^[or check the SSH config option]
* Pass the `-X`^[Mac users might want to use `-Y`, or MacOS will quit the forwarding after about 20 min.] option to your `ssh` command^[or check the SSH config option]
```{raw}
ssh -X levante
```
Loading