Skip to content

Commit

Permalink
08 - time (#18)
Browse files Browse the repository at this point in the history
* initial week 08 push

* changing to time instead of stdin

* adding nmap

* adding url to nmap runtime commands
  • Loading branch information
elreydetoda authored Oct 21, 2020
1 parent 0f3d1b7 commit b15c9b3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions weekly_lessons/08-time/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Week 08 ( time )

- [Week 08 ( time )](#week-08--time-)
- [Pre-reqs](#pre-reqs)
- [Why](#why)
- [Examples](#examples)
- [Resources](#resources)

## Pre-reqs

- bash setup
- video

[![video pic](https://img.youtube.com/vi/mfP8R1yr80A/0.jpg)](https://youtu.be/mfP8R1yr80A)

- [writen instruction](/install_methods/)
- programs (optional, but recommended)
- nmap

## Why

1. Identify how long a task(s) has ran
2. "benchmarking" command execution time
3. Just cause 🙃

## Examples

```bash
help
help time
which time
type -t time
type -a time
time echo
time sleep 3
time echo hello world | tr ' ' '\n'
time echo hello world && echo not now
time ( echo hello world && echo not now )
apk add nmap --no-cache
nmap scanme.nmap.org
time nmap scanme.nmap.org
```

## Resources

- [User CPU time vs System CPU time?](https://stackoverflow.com/questions/4310039/user-cpu-time-vs-system-cpu-time)
- Subshell warning ⬅️ placeholder
- [nmap runtime commands](../06-runtime_short/)

0 comments on commit b15c9b3

Please sign in to comment.