Skip to content

Commit

Permalink
yourUsername -> NYUNetID
Browse files Browse the repository at this point in the history
 	modified:   _config.yml
	modified:   _episodes/11-connecting.md
	modified:   _episodes/14-environment-variables.md
	modified:   _episodes/17-parallel.md
	modified:   _includes/snippets_library/NYU_Greene_slurm/_config_options.yml
  • Loading branch information
s-sajid-ali committed Aug 27, 2024
1 parent f5ccae5 commit c399504
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ remote:
host: "log-1"
node: "cs"
location: "New York University, New York, NY, USA"
homedir: "/home/youUsername"
user: "yourUsername"
prompt: "[yourUsername@log-1 ~]$"
homedir: "/home/NYUNetID"
user: "NYUNetID"
prompt: "[NYUNetID@log-1 ~]$"
bash_shebang: "#!/bin/bash"

sched:
Expand Down
2 changes: 1 addition & 1 deletion _episodes/11-connecting.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ can ssh directly to the clusters.

> ## Before copying these command typing them on your computer
>
> Replace `{{ site.remote.user }}` with your username for all the instructions below!
> Replace `{{ site.remote.user }}` with your NetID for all the instructions below!
{: .callout}

If you choose the Gateway Option, start by hopping onto the gateway nodes first by:
Expand Down
18 changes: 9 additions & 9 deletions _episodes/14-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ $ printenv
~~~
SHELL=/bin/bash
WINDOWID=87
SINGULARITY_CACHEDIR=/state/partition1/yourUsername-singularity-cache
SINGULARITY_CACHEDIR=/state/partition1/NYUNetID-singularity-cache
COLORTERM=truecolor
HISTCONTROL=ignoredups
HISTSIZE=1000
HOSTNAME=log-3
FPATH=/usr/share/zsh/5.5.1/functions:/usr/share/zsh/5.5.1/functions:/share/apps/lmod/8.4.9/lmod/lmod/init/ksh_funcs
SSH_AUTH_SOCK=/tmp/ssh-XXXXb32gan/agent.3025643
__LMOD_REF_COUNT_MODULEPATH=/share/apps/modulefiles:1
VAST=/vast/yourUsername
VAST=/vast/NYUNetID
LMOD_DIR=/share/apps/lmod/8.4.9/lmod/lmod/libexec
...
~~~
Expand Down Expand Up @@ -100,15 +100,15 @@ $ echo $HOME
{: .language-bash}

~~~
/home/yourUsername
/home/NYUNetID
~~~
{: .output}

The dollar sign tells the shell that we want the *value* of the variable
rather than its name.
This works just like wildcards:
the shell does the replacement *before* running the program we've asked for.
Thanks to this expansion, what we actually run is `echo /home/yourUsername`,
Thanks to this expansion, what we actually run is `echo /home/NYUNetID`,
which displays the right thing.

## Creating and Changing Variables
Expand Down Expand Up @@ -227,8 +227,8 @@ here are the components of `PATH` listed one per line:
~~~
/share/apps/singularity/bin
/share/apps/local/bin
/home/yourUsername/.local/bin
/home/yourUsername/bin
/home/NYUNetID/.local/bin
/home/NYUNetID/bin
/share/apps/singularity/bin
/share/apps/local/bin
/usr/local/bin
Expand All @@ -245,12 +245,12 @@ there are actually three programs called `analyze`
in three different directories:
`/bin/analyze`,
`/usr/local/bin/analyze`,
and `/users/yourUsername/analyze`.
and `/users/NYUNetID/analyze`.
Since the shell searches the directories in the order they're listed in `PATH`,
it finds `/bin/analyze` first and runs that.
Notice that it will *never* find the program `/users/yourUsername/analyze`
Notice that it will *never* find the program `/users/NYUNetID/analyze`
unless we type in the full path to the program,
since the directory `/users/yourUsername` isn't in `PATH`.
since the directory `/users/NYUNetID` isn't in `PATH`.

This means that I can have executables in lots of different places as long as
I remember that I need to to update my `PATH` so that my shell can find them.
Expand Down
8 changes: 4 additions & 4 deletions _episodes/17-parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ it in your ("user") home directory:
{: .language-bash}

```
Processing /home/ss19980/packages/temp/hpc-carpentry-amdahl-46c9b4b
Processing /home/NYUNetID/packages/temp/hpc-carpentry-amdahl-46c9b4b
Collecting mpi4py
Using cached mpi4py-4.0.0.tar.gz (464 kB)
Installing build dependencies ... done
Expand All @@ -64,15 +64,15 @@ Collecting mpi4py
Building wheels for collected packages: amdahl, mpi4py
Building wheel for amdahl (setup.py) ... done
Created wheel for amdahl: filename=amdahl-0.3.1-py3-none-any.whl size=6996 sha256=13a95c3e6fbc53fde1c90a4a9bbb3fd3179d5e3afa3e19b4131a05d9ac798981
Stored in directory: /home/ss19980/.cache/pip/wheels/2c/53/fc/19c3053b3a1d3625ac26158b28f263783f66ec258df97aefcf
Stored in directory: /home/NYUNetID/.cache/pip/wheels/2c/53/fc/19c3053b3a1d3625ac26158b28f263783f66ec258df97aefcf
Building wheel for mpi4py (PEP 517) ... done
Created wheel for mpi4py: filename=mpi4py-4.0.0-cp38-cp38-linux_x86_64.whl size=5169079 sha256=9afceb56e22608a7de33442a60bbde3cbd4aa06947d48de5f6dc63932d34bc9f
Stored in directory: /home/ss19980/.cache/pip/wheels/31/3b/6f/dc579e9ff3e2273078596b0cbc1e8d6cbf5a3a05cfad4a380a
Stored in directory: /home/NYUNetID/.cache/pip/wheels/31/3b/6f/dc579e9ff3e2273078596b0cbc1e8d6cbf5a3a05cfad4a380a
Successfully built amdahl mpi4py
Installing collected packages: mpi4py, amdahl
Successfully installed amdahl-0.3.1 mpi4py-4.0.0
WARNING: You are using pip version 20.2.3; however, version 24.2 is available.
You should consider upgrading via the '/home/ss19980/packages/temp/hpc-carpentry-amdahl-46c9b4b/test_venv/bin/python3 -m pip install --upgrade pip' command.
You should consider upgrading via the '/home/NYUNetID/packages/temp/hpc-carpentry-amdahl-46c9b4b/test_venv/bin/python3 -m pip install --upgrade pip' command.
```
{: .output}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ remote:
node: "cs"
location: "New York University, New York, NY, USA"
homedir: "/home/youUsername"
user: "yourUsername"
prompt: "[yourUsername@log-1 ~]$"
user: "NYUNetID"
prompt: "[NYUNetID@log-1 ~]$"
bash_shebang: "#!/bin/bash"

sched:
Expand All @@ -44,7 +44,7 @@ sched:
testing: "normal"
status: "squeue"
flag:
user: "-u yourUsername"
user: "-u NYUNetID"
interactive: ""
histdetail: "-l -j"
name: "-J"
Expand Down

0 comments on commit c399504

Please sign in to comment.