Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 83a8b56

Browse files
committed
bash -> language-bash
Fixes #36
1 parent 492cbaa commit 83a8b56

File tree

5 files changed

+76
-76
lines changed

5 files changed

+76
-76
lines changed

_episodes/01-connecting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ system now:
145145
```
146146
ssh yourUsername@{{ site.workshop_host_login }}
147147
```
148-
{: .bash}
148+
{: .language-bash}
149149

150150
```
151151
{% include /snippets/01/login_output.{{ site.workshop_host_id }} %}

_episodes/02-navigation.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Right now, all we see is something that looks like this:
2828
~~~
2929
{{ site.workshop_host_prompt }}
3030
~~~
31-
{: .bash}
31+
{: .language-bash}
3232

3333
The dollar sign is a **prompt**, which shows us that the shell is waiting for
3434
input; your shell may use a different character as a prompt and may add
@@ -43,7 +43,7 @@ user, i.e., it shows us who the shell thinks we are:
4343
~~~
4444
$ whoami
4545
~~~
46-
{: .bash}
46+
{: .language-bash}
4747
~~~
4848
yourUsername
4949
~~~
@@ -68,7 +68,7 @@ system to system.
6868
~~~
6969
$ pwd
7070
~~~
71-
{: .bash}
71+
{: .language-bash}
7272
~~~
7373
{{ site.workshop_host_homedir }}/yourUsername
7474
~~~
@@ -79,7 +79,7 @@ directory?
7979
```
8080
$ ls
8181
```
82-
{: .bash}
82+
{: .language-bash}
8383

8484
`ls` prints the names of the files and directories in the current directory in
8585
alphabetical order, arranged neatly into columns.
@@ -116,7 +116,7 @@ the directory you wish to create.
116116
```
117117
$ mkdir documents
118118
```
119-
{: .bash}
119+
{: .language-bash}
120120
121121
Let's us `ls` again. What do we see?
122122
@@ -128,7 +128,7 @@ there? We will use the `cd` (change directory) command to move around. Let's
128128
$ cd documents
129129
$ pwd
130130
```
131-
{: .bash}
131+
{: .language-bash}
132132
```
133133
~/documents
134134
```
@@ -148,7 +148,7 @@ $ cd {{ site.workshop_host_homedir }}/yourUserName
148148
$ cd ~
149149
$ cd
150150
```
151-
{: .bash}
151+
{: .language-bash}
152152
153153
A quick note on the structure of a UNIX (Linux/Mac/Android/Solaris/etc)
154154
filesystem. Directories and absolute paths (i.e. exact position in the system)
@@ -161,7 +161,7 @@ $ cd /
161161
$ ls
162162
$ cd ~
163163
```
164-
{: .bash}
164+
{: .language-bash}
165165
```
166166
bin cvmfs etc initrd lib64 localscratch mnt opt project root sbin srv tmp var
167167
boot dev home lib local media nix proc ram run scratch sys usr work
@@ -220,7 +220,7 @@ $ pwd
220220
$ cd ..
221221
$ pwd
222222
```
223-
{: .bash}
223+
{: .language-bash}
224224
225225
```
226226
{{ site.workshop_host_homedir }}/yourUserName/documents
@@ -244,7 +244,7 @@ all the time.
244244
```
245245
$ ls -a
246246
```
247-
{: .bash}
247+
{: .language-bash}
248248
```
249249
. .. .bash_logout .bash_profile .bashrc documents .emacs .mozilla .ssh
250250
```
@@ -256,7 +256,7 @@ size in bytes, date last modified, permissions, and other things with `-l`.
256256
```
257257
$ ls -l
258258
```
259-
{: .bash}
259+
{: .language-bash}
260260
```
261261
drwxr-xr-x 2 yourUsername tc001 4096 Jan 14 17:31 documents
262262
```
@@ -271,7 +271,7 @@ We can also use multiple flags at the same time!
271271
```
272272
$ ls -l -a
273273
```
274-
{: .bash}
274+
{: .language-bash}
275275
276276
```
277277
{{ site.workshop_host_prompt }} ls -la
@@ -296,15 +296,15 @@ generally looks something like this:
296296
```
297297
$ command <flags/options> <arguments>
298298
```
299-
{: .bash}
299+
{: .language-bash}
300300
301301
So using `ls -l -a` on a different directory than the one we're in would look
302302
something like:
303303
304304
```
305305
$ ls -l -a ~/documents
306306
```
307-
{: .bash}
307+
{: .language-bash}
308308
309309
```
310310
drwxr-sr-x 2 yourUsername tc001 4096 Nov 28 09:58 .
@@ -322,7 +322,7 @@ what it is).
322322
```
323323
$ man ls
324324
```
325-
{: .bash}
325+
{: .language-bash}
326326
327327
```
328328
LS(1) User Commands LS(1)
@@ -351,7 +351,7 @@ addition information For instance, with `ls`:
351351
```
352352
$ ls --help
353353
```
354-
{: .bash}
354+
{: .language-bash}
355355
356356
```
357357
Usage: ls [OPTION]... [FILE]...
@@ -380,7 +380,7 @@ Mandatory arguments to long options are mandatory for short options too.
380380
> ~~~
381381
> [remote]$ ls -j
382382
> ~~~
383-
> {: .bash}
383+
> {: .language-bash}
384384
>
385385
> ~~~
386386
> ls: invalid option -- 'j'

_episodes/03-files.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ cd ~
2929
$ mkdir hpc-test
3030
$ cd hpc-test
3131
```
32-
{: .bash}
32+
{: .language-bash}
3333

3434

3535
## Creating and Editing Text Files
@@ -50,7 +50,7 @@ save it.
5050
```
5151
$ nano draft.txt
5252
```
53-
{: .bash}
53+
{: .language-bash}
5454

5555
![Nano in action]({{ site.url }}{{ site.baseurl }}/fig/nano-screenshot.png)
5656

@@ -97,7 +97,7 @@ Do a quick check to confirm our file was created.
9797
```
9898
$ ls
9999
```
100-
{: .bash}
100+
{: .language-bash}
101101

102102
```
103103
draft.txt
@@ -113,7 +113,7 @@ doing this, one of which is reading the entire file with `cat`.
113113
```
114114
$ cat draft.txt
115115
```
116-
{: .bash}
116+
{: .language-bash}
117117

118118
```
119119
It's not "publish or perish" any more,
@@ -129,7 +129,7 @@ input files in the order specified in the `cat`'s invocation. For example,
129129
```
130130
$ cat draft.txt draft.txt
131131
```
132-
{: .bash}
132+
{: .language-bash}
133133

134134
```
135135
It's not "publish or perish" any more,
@@ -156,7 +156,7 @@ this before, using `mkdir`.
156156
$ mkdir files
157157
$ ls
158158
```
159-
{: .bash}
159+
{: .language-bash}
160160
```
161161
draft.txt files
162162
```
@@ -174,7 +174,7 @@ $ mv draft.txt files
174174
$ cd files
175175
$ ls
176176
```
177-
{: .bash}
177+
{: .language-bash}
178178
```
179179
draft.txt
180180
```
@@ -190,7 +190,7 @@ similar to moving files: `mv oldName newName`.
190190
$ mv draft.txt newname.testfile
191191
$ ls
192192
```
193-
{: .bash}
193+
{: .language-bash}
194194
```
195195
newname.testfile
196196
```
@@ -224,7 +224,7 @@ $ cp newname.testfile ..
224224
$ cd ..
225225
$ ls
226226
```
227-
{: .bash}
227+
{: .language-bash}
228228

229229
```
230230
newname.testfile copy.testfile
@@ -248,7 +248,7 @@ $ ls
248248
$ rm newname.testfile
249249
$ ls
250250
```
251-
{: .bash}
251+
{: .language-bash}
252252

253253
```
254254
files Documents newname.testfile
@@ -265,7 +265,7 @@ $ rm -r Documents
265265
$ rm -r files
266266
$ ls
267267
```
268-
{: .bash}
268+
{: .language-bash}
269269

270270
```
271271
files Documents
@@ -316,7 +316,7 @@ a link).
316316
```
317317
$ wget {{site.url}}{{site.baseurl}}/files/bash-lesson.tar.gz
318318
```
319-
{: .bash}
319+
{: .language-bash}
320320

321321
> ## Problems with `wget`?
322322
>
@@ -332,7 +332,7 @@ $ wget {{site.url}}{{site.baseurl}}/files/bash-lesson.tar.gz
332332
> ```
333333
> $ curl -O {{site.url}}{{site.baseurl}}/files/bash-lesson.tar.gz
334334
> ```
335-
> {: .bash}
335+
> {: .language-bash}
336336
>
337337
> For very large downloads, you might consider using
338338
> [Aria2](https://aria2.github.io/), which has support for downloading the same
@@ -342,7 +342,7 @@ $ wget {{site.url}}{{site.baseurl}}/files/bash-lesson.tar.gz
342342
> ```
343343
> $ aria2c {{site.url}}{{site.baseurl}}/files/bash-lesson.tar.gz https://hpc-carpentry.github.io/hpc-shell/files/bash-lesson.tar.gz
344344
> ```
345-
> {: .bash}
345+
> {: .language-bash}
346346
>
347347
> > ## Install cURL
348348
> >
@@ -386,7 +386,7 @@ the files from a `.tar.gz` file, we run the command `tar -xvf filename.tar.gz`:
386386
```
387387
$ tar -xvf bash-lesson.tar.gz
388388
```
389-
{: .bash}
389+
{: .language-bash}
390390
391391
```
392392
dmel-all-r6.19.gtf

0 commit comments

Comments
 (0)