-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial week 08 push * changing to time instead of stdin * adding nmap * adding url to nmap runtime commands
- Loading branch information
1 parent
0f3d1b7
commit b15c9b3
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/) |