As a first-time user, familiarize yourself with the following helpful commands and configurations to enhance your experience:
-`TAB` for command completion (and f.e. to quickly check if a command or file exists on the system).
-`Ctrl-r` to search through command history efficiently, facilitating the repetition of commands.
-`Ctrl-c` to cancel the execution of a command if needed.
If you find yourself stuck in a shell-opened program, try the following steps to exit the program:
1. Press `Ctrl-c`.
2. Press `Esc`.
3. Type `q`.
4. Type `:q`.
5. Type `:!q`.
6. Press `Ctrl-x` followed by `Ctrl-c`.
---
Every login starts with a clear environment. This means for every new connection:
- The `jutil` command - that sets various useful variables like `$SCRATCH` - is reset and has to be re-activated `jutil env activate -p <project>`.
- The default modules are loaded. For example, any `source loadenvs.Intel` commands or similar have to be repeated to load a specific module list.
- Any previously set variables e.g. `export VARIABLE=VALUE` are no longer set.
On the other hand, changes to `$HOME/.bashrc` will load automatically at login.
---
Add the following lines to `$HOME/.bashrc` to enhance your command line environment. They define a longer history and some nice alias commands (feel free to add to the list):
```shell=
export HISTFILE=~/.bash_history
export SAVEHIST=2000
export HISTSIZE=1000
# Aliases
alias ls='ls --color -o -h '
alias l='ls'
alias less='less -N'
alias dirs='dirs -v'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias open='chmod go+r'
alias shut='chmod go-r'
alias myq="watch squeue -u $USER"
```
---
Add the following line to `$HOME/.bash_profile` to display more information in the command line prompt.
Create a file named `$HOME/.gitconfig` with the following lines and adapt your name and email (ensure this information is suitable for public use). These configurations provide shortcuts for common Git commands: