summaryrefslogtreecommitdiff
path: root/guides/shell-101.org
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2025-01-14 22:48:35 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2025-01-14 23:26:44 +0100
commitcf8a3f15ee1c80b874be10cbdd34496b84560f59 (patch)
treec7a77d6938c6d8d539a6ae1e72160732d440ccf5 /guides/shell-101.org
parentfaf50994d58d2651a2ab1bb1ed94dce1feb246bd (diff)
downloadmemory-leaks-cf8a3f15ee1c80b874be10cbdd34496b84560f59.tar.xz
Sort guides up a bit
Diffstat (limited to 'guides/shell-101.org')
-rw-r--r--guides/shell-101.org44
1 files changed, 0 insertions, 44 deletions
diff --git a/guides/shell-101.org b/guides/shell-101.org
deleted file mode 100644
index 2131faa..0000000
--- a/guides/shell-101.org
+++ /dev/null
@@ -1,44 +0,0 @@
-My tentative introductory guide to navigating a shell interface
-(assuming Bash).
-
-🚧 These are rough notes meant for guiding in-person discussions; they
-are somewhat terse. 🚧
-
-* Moving around, invoking stuff
-
-With a file browser and a terminal emulator side-by-side:
-
-- ls, cd, mkdir, touch, rm; "/" = root
-- globs
-- arguments vs options (e.g. ls, diff)
-- man, --help
-- standard input/output/error: pipes, redirection
-- writing scripts (shebangs: see bash(1) § COMMAND EXECUTION)
-
-* Shell language
-
-- ; & (e.g. sleep)
-- && || (e.g. grep)
-- if, for
-- $? (e.g. grep, diff)
-- [
-- variables
-- functions, $@, $1…
-- black-box model of a command:
- - inputs: stdin, arguments, environment
- - outputs: stdout, stderr, exit code
- - side-effects: I/O, e.g. files, network
-- which, type: keyword ≠ builtin ≠ function ≠ program
-- valar quotulis (valar escaepis); e.g. sort operator: [ foo '>' bar ]
-
-* Advanced
-
-- ( ) ≠ { }: try to set variables, or call exit
-- (( )), $( )
-- glob ≠ regex
-- bash extensions
- - [[
- - <( )
- - |&, >&
- - arrays
-- job control: fg, bg, jobs, wait, kill, C-z