Browse Source

sep26.md

master
Anthony Fadly 1 year ago
parent
commit
3fb39397ed
2 changed files with 19 additions and 0 deletions
  1. 2
    0
      README.md
  2. 17
    0
      sep26.md

+ 2
- 0
README.md View File

@@ -7,3 +7,5 @@
### [September 19 - More Commands](sep19-more-commands.md)

### [September 21 - Conditionals](sep21-conditionals.md)

### [September 26](sep26.md)

+ 17
- 0
sep26.md View File

@@ -0,0 +1,17 @@
# September 26 Notes

`$ cat file` vs `$ less file` # less allows you to scroll

```
$ docker cp <image container hash>:/path/to/file /local/path

# copy /path/to/file from a docker container to /local/path on your computer
```

```
$ ( echo 1 || exit 1 ) && { echo 2 ; echo 3 || exit 7; } && ( exit 5 )
```

1. `( echo 1 || exit 1 )` exits 0
2. `{ echo 2 ; echo 3 || exit 7; }` exits 0
3. `( exit 5 )` exits 5

Loading…
Cancel
Save