CRUD means Create, Read, Update, Delete: the four basic things you do with files. Doing them from the command line is essential for scripting and investigations.
| No. | Step | Source | Destination | Type | Info |
|---|---|---|---|---|---|
| 1 | Create | investigator | terminal | REQUEST | — |
| 2 | Create | terminal | case42/notes.txt | DATA | mkdir · touch |
CRUD means Create, Read, Update, Delete: the four basic things you do with files. Doing them from the command line is essential for scripting and investigations.
New-Item notes.txt (PowerShell) or touch notes.txt (Linux/macOS); mkdir makes folders on all three.Get-Content notes.txt or type on Windows; cat, less and head on Linux/macOS.echo 'hi' >> notes.txt everywhere; rename with mv or Rename-Item; copy with cp or Copy-Item.Remove-Item or del on Windows, rm on Linux/macOS; command-line deletes skip the recycle bin.