diff --git a/content/events/2017/june_workshop_series_2017.md b/content/events/2017/june_workshop_series_2017.md index a7ff70d7d34777a1bcc9b4d5aa7f0711d65b8ce4..8f4c8586c6f676099ad16abb8eafadfdfb390e17 100644 --- a/content/events/2017/june_workshop_series_2017.md +++ b/content/events/2017/june_workshop_series_2017.md @@ -6,8 +6,7 @@ description = "June Workshop Series 2017." [Series Website](https://hcc.unl.edu/june-workshop-series) ===================================================================================================================== -**June 6th and 13th: Bash and Git** -=================================== +## **<p style="color:black; text-align: center;">June 6th and 13th: Bash and Git</p>** Learn how to navigate in the Linux command line. Topics include the use of pipes, filters, loops, handling text files, and how to write @@ -21,8 +20,7 @@ Carpentry lessons. - [Lessons](https://unlhcc.github.io/2017-06-06-UNL/) - [Attendee Portal](http://hcc.unl.edu/swc-history/index.html) -**June 20th: Introductory HCC** -=============================== +## **<p style="color:black; text-align: center;"> June 20th: Introductory HCC</p>** Learn the basics of working with Holland resources. Topics include an overview of HCC offerings, connecting to the clusters, submitting jobs, @@ -34,8 +32,7 @@ handling data and tips on how to optimize workflow. - [Introduction to HCC.pptx](https://unl.box.com/s/jfr1o92npxms2gw3n1thar7prsvg340k) - [Introduction to HCC.pdf](https://unl.box.com/s/6m55lvsxpn5jgc5ph35b04cx0t1jysz1) -**June 27th: All about SLURM** -============================== +## **<p style="color:black; text-align: center;">June 27th: All about SLURM</p>** Learn all about the Simple Linux Utility for Resource Management (SLURM), HCC's workload manager (scheduler) and how to select the best diff --git a/content/quickstarts/connecting/basic_linux_commands.md b/content/quickstarts/connecting/basic_linux_commands.md index 8579cad07d7561a5c448dd571e927a1ee8a25148..7beafd89ac4d52a802e9fd05441b027a62d4f321 100644 --- a/content/quickstarts/connecting/basic_linux_commands.md +++ b/content/quickstarts/connecting/basic_linux_commands.md @@ -32,182 +32,26 @@ For a more information, check out one of these references: - [Linux Command Line Cheat Sheet](https://www.cheatography.com/davechild/cheat-sheets/linux-command-line) - a quick reference for Linux commands. Offers a PDF version that you can print out. + + Linux Commands Reference List: ------------------------------ -<table> -<tbody> -<tr class="odd"> -<td>ls</td> -<td>list: Lists the files and directories located in the current directory</td> -<td><ul> -<li>ls</li> -<li>`ls -a` -<ul> -<li>shows all the files in the directory, including hidden ones</li> -</ul></li> -<li>ls -l -<ul> -<li>shows contents in a list format including information such as file size, file permissions and date the file was modified</li> -</ul></li> -<li>ls *.txt -<ul> -<li>shows all files in the current directory which end with .txt</li> -</ul></li> -</ul></td> -</tr> -<tr class="even"> -<td>cd</td> -<td>change directory: this allows users to navigate in or out of file directories</td> -<td><ul> -<li>cd <folder path></li> -<li>cd folder_name -<ul> -<li>navigates into directory "folder_name" located in the current directory</li> -</ul></li> -<li>cd .. -<ul> -<li>navigates out of a directory and into the parent directory</li> -</ul> -cd $HOME (or $WORK) -<ul> -<li>navigates to a user's home (or work) directory</li> -</ul></li> -</ul></td> -</tr> -<tr class="odd"> -<td>mv</td> -<td>move: used to move a file or directory to another location</td> -<td><ul> -<li>mv <current file(s)> <target file(s)></li> -<li>mv * ../ -<ul> -<li>moves all files from the current directory into the parent directory</li> -</ul></li> -<li>mv old_filename new_filename -<ul> -<li>renames the file "old_filename" to "new_filename"</li> -</ul></li> -</ul></td> -</tr> -<tr class="even"> -<td>cp</td> -<td>copy: used to copy a file or directory to another location</td> -<td><ul> -<li>cp <current file(s)> <target file(s)></li> -<li>cp * ../ -<ul> -<li>copies all files in the current directory and puts the copies into the parent directory</li> -</ul></li> -<li>cp -r ./orig_folder ./new_folder<br /> - -<ul> -<li>copies all files and directories within orig_folder into new_folder (-r indicates this is a recursive copy, so all sub-directories and files within orig_folder will be included in new_folder)</li> -</ul></li> -</ul></td> -</tr> -<tr class="odd"> -<td>man</td> -<td><p>manual: displays documentation for commands</p> -<p><strong>Note:</strong> Use up and down arrows to scroll through the text. To exit the manual display, press 'q'</p></td> -<td><ul> -<li>man <command name></li> -<li>man ls -<ul> -<li>displays documentation for the ls command</li> -</ul></li> -</ul></td> -</tr> -<tr class="even"> -<td>mkdir</td> -<td>make directory: creates a directory with the specified name</td> -<td><ul> -<li>mkdir <new_folder> -<ul> -<li>creates the directory "new_folder" within the current directory</li> -</ul></li> -</ul></td> -</tr> -<tr class="odd"> -<td>rmdir</td> -<td><p>remove directory: deletes a directory with the specified name</p> -<p><strong>Note:</strong> rmdir only works on empty directories</p></td> -<td><ul> -<li>rmdir <folder_name> -<ul> -<li>removes the directory "folder_name" if the directory is empty</li> -</ul></li> -<li>rmdir * -<ul> -<li>removes all directories within the current directory</li> -</ul></li> -</ul></td> -</tr> -<tr class="even"> -<td>rm</td> -<td>remove: deletes file or files with the specified name(s)</td> -<td><ul> -<li>rm <file_name> -<ul> -<li>deletes the file "file_name"</li> -</ul></li> -<li>rm * -<ul> -<li>deletes all files in the current directory</li> -</ul></li> -</ul></td> -</tr> -<tr class="odd"> -<td><p>nano</p></td> -<td><p>nano text editor: opens the nano text editor</p> -<p><strong>Note:</strong> To access the menu options, ^ indicates the control (CTRL) key.</p></td> -<td><ul> -<li>nano -<ul> -<li>opens the text editor in a blank file</li> -</ul></li> -<li>nano <file_name> -<ul> -<li>opens the text editor with "file_name" open. If "file_name" does not exist, it will be created if the file is saved</li> -</ul></li> -</ul></td> -</tr> -<tr class="even"> -<td>clear</td> -<td>clear: clears the screen of all input/output</td> -<td><ul> -<li>clear</li> -</ul></td> -</tr> -<tr class="odd"> -<td>less</td> -<td><p>less: opens an extended view of a file</p> -<p><strong>Note:</strong> Use up and down arrows to scroll through the text. To exit the extended view, press 'q'</p></td> -<td><ul> -<li>less <file_name> -<ul> -<li>opens an extended view of the file "file_name"</li> -</ul></li> -</ul></td> -</tr> -<tr class="even"> -<td>cat</td> -<td>concatenate: sends file contents to standard input - used frequently with pipes</td> -<td><ul> -<li>cat <file_name> -<ul> -<li>prints the contents of the file "file_name"</li> -</ul></li> -<li>cat *.txt -<ul> -<li>prints the contents of all files in the current directory that end in ".txt"</li> -</ul></li> -</ul></td> -</tr> -</tbody> -</table> - +| | | | +|-------|-------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `ls` | list: Lists the files and directories located in the current directory | <ul><li>`ls`</li><li>`ls -a`<ul><li>shows all the files in the directory, including hidden ones</li></ul></li><li>`ls -l`<ul><li>shows contents in a list format including information such as file size, file permissions and date the file was modified</li></ul></li><li>`ls *.txt`<ul><li>shows all files in the current directory which end with `.txt`</li></ul></li></ul>| +| `cd` | change directory: this allows users to navigate in or out of file directories | <ul><li>`cd <folder path>`</li><li>`cd <folder_name>`<ul><li>navigates into directory `<folder_name>` located in the current directory</li></ul></li><li>`cd ..`<ul><li>navigates out of a directory and into the parent directory</li></ul><li>`cd $HOME` (or `$WORK`)<ul><li>navigates to a user's home (or work) directory</li></ul></li></ul> | +| `mv` | move: used to move a file or directory to another location | <ul><li>`mv <current file(s)> <target file(s)>`</li><li>`mv * ../`<ul><li>moves all files from the current directory into the parent directory</li></ul></li><li>`mv <old_filename> <new_filename>`<ul><li>renames the file `<old_filename>` to `<new_filename>`</li></ul></li></ul> | +| `cp` | copy: used to copy a file or directory to another location | <ul><li>`cp <current file(s)> <target file(s)>`</li><li>`cp * ../`<ul><li>copies all files in the current directory and puts the copies into the parent directory</li></ul></li><li>`cp -r ./orig_folder ./new_folder`<br /><ul><li>copies all files and directories within `orig_folder` into `new_folder` (`-r` indicates this is a recursive copy, so all sub-directories and files within `orig_folder` will be included in `new_folder`)</li></ul></li></ul> | +| `man` | manual: displays documentation for commands </br> </br>**Note:** Use up and down arrows to scroll through the text. To exit the manual display, press 'q' | <ul><li>`man <command name>`</li><li>`man ls`<ul><li>displays documentation for the `ls` command</li></ul></li></ul> | +| `mkdir` | make directory: creates a directory with the specified name | <ul><li>`mkdir new_folder`<ul><li>creates the directory `new_folder` within the current directory</li></ul></li></ul> | +| `rmdir` | remove directory: deletes a directory with the specified name </br></br>**Note:** `rmdir` only works on empty directories | <ul><li>`rmdir folder_name`<ul><li>removes the directory `folder_name` if the directory is empty</li></ul></li><li>`rmdir *`<ul><li>removes all directories within the current directory</li></ul></li></ul> | +| `rm` | remove: deletes file or files with the specified name(s) | <ul><li>`rm file_name`<ul><li>deletes the file `file_name`</li></ul></li><li>`rm *`<ul><li>deletes all files in the current directory</li></ul></li></ul> | +| `nano` | nano text editor: opens the nano text editor </br></br> **Note:** To access the menu options, `^` indicates the control (CTRL) key. | <ul><li>`nano`<ul><li>opens the text editor in a blank file</li></ul></li><li>`nano file_name`<ul><li>opens the text editor with `file_name` open. If `file_name` does not exist, it will be created if the file is saved</li></ul></li></ul> | +| `clear` | clear: clears the screen of all input/output | <ul><li>`clear`</li></ul> | +| `less` | less: opens an extended view of a file </br></br> **Note:** Use up and down arrows to scroll through the text. To exit the extended view, press '`q`' | <ul><li>`less <file_name>`<ul><li>opens an extended view of the file `file_name`</li></ul></li></ul> | +| `cat` | concatenate: sends file contents to standard input - used frequently with pipes | <ul><li>`cat <file_name>`<ul><li>prints the contents of the file `file_name`</li></ul></li><li>`cat *.txt`<ul><li>prints the contents of all files in the current directory that end in `.txt`</li></ul></li></ul> | Tutorial Video --------------