Your Basic Environment
Goal: Demonstrate what a default session starts as.
- 1 Bash
- 2 Environment Variables
- 3 Keep an Eye on the Message of the Day
- 4 Forgot Which Projects You’re In? What’s My Storage Use?
- 5 Help and Manual Pages
- 6 Are There Compilers and Languages Available?
- 7 Let's run a Python script:
- 8 Let’s Run an R Script
- 9 You Can’t Break the System
- 10 What is sudo? Can I use/request sudo?
Bash
Bash is command-line shell and scripting language that allows users to interact with Unix-based operating systems.
[]$ bash --version
GNU bash, version 5.1.8(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Environment Variables
An environment variable is a user/system defined value that can read by users/scripts/applications, and be used to affect/influence how something can/should behave.
Lets list everything that the session is currently aware of - there’s a lot!
This demonstrates that there is a lot of things being defined and configured, behind the scenes, to make your session run as required.
[]$ env
[]$ echo $PATH
# Something of the form:
/home/<username>/.local/bin:/home/<username>/bin:/apps/s/arcc/1.0/bin:/apps/s/slurm/latest/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
Keep an Eye on the Message of the Day
Forgot Which Projects You’re In? What’s My Storage Use?
Help and Manual Pages
Are There Compilers and Languages Available?
Let's run a Python script:
Let's run a Python script: Fixed:
Let’s Run an R Script
You Can’t Break the System
What is sudo
? Can I use/request sudo
?