From 790de8b4caf4ca5382ddf0ebd7ba0c770b066f7d Mon Sep 17 00:00:00 2001 From: Cecile Hannay Date: Thu, 27 Jun 2024 15:37:33 -0600 Subject: [PATCH] Prerequisites and resources: made some additions --- notebooks/prereqs/exercises.ipynb | 6 +- notebooks/prereqs/prereqs_overview.ipynb | 10 +-- notebooks/resources/terminals.ipynb | 4 +- notebooks/resources/unix.ipynb | 89 +++++++++++++++++++++++- 4 files changed, 99 insertions(+), 10 deletions(-) diff --git a/notebooks/prereqs/exercises.ipynb b/notebooks/prereqs/exercises.ipynb index 236f4a700..31d8ab918 100644 --- a/notebooks/prereqs/exercises.ipynb +++ b/notebooks/prereqs/exercises.ipynb @@ -40,7 +40,9 @@ "\n", "\n", "\n", - "Where `username` is replaced with your tutorial username. Your derecho login will be used through out the tutorial. If you have difficulty getting this to work please ask for help. If you are in the in person tutorial there will be helpers available. If you are doing this outside of the tutorial then you can contact the user support from the NCAR Computational and Information Systems Laboratory (CISL)." + "Where `username` is replaced with your tutorial username. Your derecho login will be used through out the tutorial. If you have difficulty getting this to work please ask for help. \n", + "- If you are in the in-person tutorial at NCAR, there will be helpers available.\n", + "- If you are doing this outside of the tutorial then you can contact the user support from the NCAR Computational and Information Systems Laboratory (CISL)." ] }, { @@ -129,7 +131,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/notebooks/prereqs/prereqs_overview.ipynb b/notebooks/prereqs/prereqs_overview.ipynb index 22f59e3b6..9e74d5263 100644 --- a/notebooks/prereqs/prereqs_overview.ipynb +++ b/notebooks/prereqs/prereqs_overview.ipynb @@ -16,12 +16,12 @@ "NOTE: Although the materials and notebooks in this tutorial are published as a Jupyter Book, **you will need to use a terminal window to actually run the commands presented in this tutorial.**\n", "\n", "To successfully complete this tutorial you will:\n", - "- Utilize a terminal window\n", - "- Issue commands at the command line using UNIX\n", - "- Need to be able to access and run on the NCAR HPC assets (HPC = High Performance Computing)\n", - "- Use JupyterHub for some basic diagnostic plotting\n", + "- Utilize a **terminal** window\n", + "- Issue commands at the **command line** using **UNIX**\n", + "- Need to be able to access and run on the **NCAR HPC systems** (HPC = High Performance Computing)\n", + "- Use **JupyterHub** for some basic diagnostic plotting\n", "\n", - "The links below provide more information about these topics. If you are not familiar any of the four topics above, we strongly recommend that you read through the following sections." + "The links below provide more information about these topics. **If you are not familiar any of the four topics above, we strongly recommend that you read through the following sections.**" ] }, { diff --git a/notebooks/resources/terminals.ipynb b/notebooks/resources/terminals.ipynb index 669e00e86..e3bc6ae6e 100644 --- a/notebooks/resources/terminals.ipynb +++ b/notebooks/resources/terminals.ipynb @@ -47,7 +47,7 @@ "\n", "- `Terminal` is automatically built into the MacOS and clicking on it will open a terminal window.\n", "\n", - "- `iTerm` is software that was installed by the user on their laptop and is another option for opening a terminal." + "- `iTerm` is software that was installed by the user on their laptop and is another option for opening a terminal. (*Recommanded*)" ] }, { @@ -156,7 +156,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/notebooks/resources/unix.ipynb b/notebooks/resources/unix.ipynb index 948815008..3f512eaf2 100644 --- a/notebooks/resources/unix.ipynb +++ b/notebooks/resources/unix.ipynb @@ -37,6 +37,93 @@ "\n", "" ] + }, + { + "cell_type": "markdown", + "id": "770789d3-867e-41e8-8b3c-9a25cbfab417", + "metadata": {}, + "source": [ + "## Unix cheatsheet\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "id": "76bc874f-270c-4a05-8fe9-eac874cb0db7", + "metadata": {}, + "source": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " " + ] + }, + { + "cell_type": "markdown", + "id": "805c8473-8106-4ba6-9d8e-c27cee7fcd7d", + "metadata": {}, + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "96f010ce-2005-4a69-9081-7ced219e66ea", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -55,7 +142,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.12" + "version": "3.10.13" } }, "nbformat": 4,
CommandDescriptionOptionsExamples
lsList files and directories.-l: Long format listing.
-a: Include hidden files.
ls -l
displays files and directories with detailed information.

ls -a shows all files and directories, including hidden ones.
cdChange directory.N/Acd /path/to/directory
changes the current directory to the specified path.
pwdPrint current working directory.N/Apwd
displays the current working directory.
mkdirCreate a new directory.N/Amkdir my_directory
creates a new directory named \"my_directory\".
rmRemove files and directories.-r: Remove directories recursively.
-f: Force removal without confirmation.
rm file.txt
deletes the file named \"file.txt\".
rm -r my_directory
deletes the directory \"my_directory\" and its contents.
rm -f file.txt
forcefully deletes the file \"file.txt\" without confirmation.
cpCopy files and directories.-r: Copy directories recursively.cp -r directory destination
copies the directory \"directory\" and its contents to the specified destination.
cp file.txt destination
copies the file \"file.txt\" to the specified destination.
mvMove/rename files and directories.N/Amv file.txt new_name.txt
renames the file \"file.txt\" to \"new_name.txt\".
mv file.txt directory
moves the file \"file.txt\" to the specified directory.
findSearch for files and directories.-name: Search by filename.find /path/to/search -name “*.txt”
searches for all files with the extension “.txt” in the specified directory.