Skip to content
Snippets Groups Projects
Commit 6307db85 authored by Florian Ziemen's avatar Florian Ziemen
Browse files

Merge branch 'improve-command-line' into 'main'

Improve command line

See merge request !47
parents 406e975d 8b082c3f
No related branches found
No related tags found
1 merge request!47Improve command line
Pipeline #64265 passed
...@@ -32,7 +32,7 @@ author: "Lukas Kluft and Florian Ziemen" ...@@ -32,7 +32,7 @@ author: "Lukas Kluft and Florian Ziemen"
```{.sh} ```{.sh}
vim test.txt vim test.txt
``` ```
* Basic usage: hit `i` to activate _insert_ mode. Type something and hit `<Esc>` to fall back into _normal_ mode. Save and close the file using `:wq`. * 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 >}}.
## Scripts ## Scripts
...@@ -106,7 +106,7 @@ Different ways to work on a cluster depending on the task: ...@@ -106,7 +106,7 @@ Different ways to work on a cluster depending on the task:
* Connect to the login nodes via secure shell (`ssh`) * Connect to the login nodes via secure shell (`ssh`)
```{raw} ```{raw}
ssh a123456@levante.dkrz.de ssh <YOUR_USERNAME>@levante.dkrz.de
``` ```
(use your user id instead of a123456) (use your user id instead of a123456)
* Now you have access to the command line on levante * Now you have access to the command line on levante
...@@ -124,7 +124,7 @@ Different ways to work on a cluster depending on the task: ...@@ -124,7 +124,7 @@ Different ways to work on a cluster depending on the task:
* Upload the public (`.pub`) key to your [DKRZ profile](https://luv.dkrz.de) ([instructions](https://docs.dkrz.de/doc/levante/access-and-environment.html)), so levante can check your connection attempts * Upload the public (`.pub`) key to your [DKRZ profile](https://luv.dkrz.de) ([instructions](https://docs.dkrz.de/doc/levante/access-and-environment.html)), so levante can check your connection attempts
* Use your private ssh key instead of your password when connecting to levante * Use your private ssh key instead of your password when connecting to levante
```bash ```bash
ssh -i ~/.ssh/id_ed25519_levante a123456@levante.dkrz.de ssh -i ~/.ssh/id_ed25519_levante <YOUR_USERNAME>@levante.dkrz.de
``` ```
## Configuring SSH ## Configuring SSH
...@@ -133,7 +133,7 @@ Different ways to work on a cluster depending on the task: ...@@ -133,7 +133,7 @@ Different ways to work on a cluster depending on the task:
```{.sshconfig filename=~/.ssh/config} ```{.sshconfig filename=~/.ssh/config}
Host levante # the name you use in the shell Host levante # the name you use in the shell
Hostname levante.dkrz.de # the official name of the system Hostname levante.dkrz.de # the official name of the system
User a123456 # your user id User <YOUR_USERNAME> # add your user id
IdentityFile ~/.ssh/id_ed25519_levante # your private key IdentityFile ~/.ssh/id_ed25519_levante # your private key
``` ```
(call `man ssh_config` for more info) (call `man ssh_config` for more info)
...@@ -150,11 +150,11 @@ Different ways to work on a cluster depending on the task: ...@@ -150,11 +150,11 @@ Different ways to work on a cluster depending on the task:
* There are different tools to transfer between your local machine and a remote server * There are different tools to transfer between your local machine and a remote server
* For single files, a simple `scp` is sufficient * For single files, a simple `scp` is sufficient
```{raw} ```{raw}
scp a123456@levante.dkrz.de:file_in_home . scp <YOUR_USERNAME>@levante.dkrz.de:file_in_home .
``` ```
* `rsync` is a more powerful alternative * `rsync` is a more powerful alternative
```{raw} ```{raw}
rsync a123456@levante.dkrz.de:file_in_home . rsync <YOUR_USERNAME>@levante.dkrz.de:file_in_home .
``` ```
## Remote file transfer {auto-animate=true visibility="uncounted"} ## Remote file transfer {auto-animate=true visibility="uncounted"}
......
...@@ -59,3 +59,12 @@ h2 { ...@@ -59,3 +59,12 @@ h2 {
.right { .right {
text-align: right; text-align: right;
} }
kbd, .kbd {
// Workarund until https://github.com/quarto-dev/quarto-cli/issues/6012 is solved
color: $body-color;
background-color: #f8f9fa;
border: 1px solid;
border-radius: 5px;
border-color: $table-border-color;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment