* Shell :PROPERTIES: :ANKI_DECK: soft-eng::shell :END: ** How to send a file via =curl= up to =clip.abaj.ai=? What are the two Rest endpoints? :curl: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_NOTE_ID: 1764703875742 :ANKI_NOTE_HASH: f81ae3e1a38331d2b543f65c8f9e3b2f :END: =curl -F "file=@myfile.txt" https://clip.abaj.ai/= =curl -F "file=@image1.jpg" -F "file=@image2.jpg" https://clip.abaj.ai/upload/mypage= ** alias {{c1::icat}}="kitty +kitten icat" :kitty: :PROPERTIES: :ANKI_NOTE_TYPE: Cloze :ANKI_NOTE_ID: 1765541545560 :ANKI_NOTE_HASH: a08ca50b55798430b333116f05b74e09 :END: ** How to stow all the *directories* with GNU stow? :gnu: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_NOTE_ID: 1766880938132 :ANKI_NOTE_HASH: e171fb446710cc3b46b42d59d1d1b869 :END: =stow */= ** How to do brace expansions for letters and numbers in bash? :bash: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_NOTE_ID: 1766880829405 :ANKI_NOTE_HASH: c28294dd0c183a8d01832cb888e217b3 :END: ={A..E}= ={3..12}= double-dots. ** What is the difference between a shell and a terminal? :terminal: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_NOTE_ID: 1766880829409 :ANKI_NOTE_HASH: db54ef5b2058fb731d7be1c5f29f45ad :END: a *shell* is a command-line interface for launching linux commands by typing plain text. it prints a prompt and waits for a command. a *terminal* is a program that opens and window and /presents a (running) shell/ ** What are the 4 major parts of Linux? :linux: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_NOTE_ID: 1766880829413 :ANKI_NOTE_HASH: 5087d955d95e1016ca30a43a49fba809 :END: 1. The Kernel 2. Supplied Programs; 3. The Shell; 4. Graphical Desktop Environment (optional) ** What are the 4 major parts of Linux? :PROPERTIES: :ANKI_NOTE_TYPE: Cloze :ANKI_NOTE_ID: 1766880248933 :ANKI_NOTE_HASH: 2e7a2f677d504829270894495215f0af :ANKI_PREPEND_HEADING: t :END: *** Text What are the 4 major parts of Linux? \[ \begin{tikzpicture}[ font=\sffamily, every node/.style={align=center}, >=Stealth ] % Colors \definecolor{outer}{RGB}{210,225,240} \definecolor{shell}{RGB}{170,200,225} \definecolor{programs}{RGB}{110,160,210} \definecolor{kernel}{RGB}{50,110,180} % Radii \def\Rgui{5.0} \def\Rshell{3.8} \def\Rprog{2.6} \def\Rkern{1.4} % --- Rings --- \fill[outer, even odd rule] (0,0) circle (\Rgui) (0,0) circle (\Rshell); \draw (0,0) circle (\Rgui); \draw (0,0) circle (\Rshell); \fill[shell, even odd rule] (0,0) circle (\Rshell) (0,0) circle (\Rprog); \draw (0,0) circle (\Rprog); \fill[programs, even odd rule] (0,0) circle (\Rprog) (0,0) circle (\Rkern); \draw (0,0) circle (\Rkern); \fill[kernel] (0,0) circle (\Rkern); \draw (0,0) circle (\Rkern); % --- Labels --- \node[text=white, font=\bfseries] at (0,0) {{{c1::Kernel}}}; \node[text=white] at (0,-2.0) {{{c2::Programs\\(commands)}}}; \node at (0,-3.3) {{{c3::Shell\\(command-line interface)}}}; \node at (0,-4.4) {{{c4::Graphical desktop environment}}}; % --- Arrows + verbs (boundary-local, white) --- % Programs -> Kernel : Call \draw[->, white, line width=1.2pt] (1.2,0.3) -- (0.8,0.3); \node[white, right] at (1.3,0.3) {\itshape Call}; % Shell -> Programs : Invokes \draw[->, white, line width=1.2pt] (1.9,-1.9) -- (1.4,-1.6); \node[white, right] at (2.0,-1.9) {\itshape Invokes}; % GUI -> Shell : Launches \draw[->, black, line width=1.2pt] (2.8,-3.4) -- (2.2,-3.1); \node[right] at (2.9,-3.4) {\itshape Launches}; \end{tikzpicture} \] *** Back Extra ** In Emacs, what does the following binding/s do? :emacs: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_PREPEND_HEADING: t :ANKI_NOTE_ID: 1766880829417 :ANKI_NOTE_HASH: 25b4486ac05e9dad8698bfbd8a5f3f62 :END: =C-h b= *** Back lists bindings ** In Emacs, what does the following binding/s do? :emacs: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_PREPEND_HEADING: t :ANKI_NOTE_ID: 1766880829420 :ANKI_NOTE_HASH: b6daa60a3c11d52cb6adff8d48ae8932 :END: =M-{= and =M-}= *** Back forward / backard paragraph ** In Emacs, what does the following binding/s do? :emacs: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_PREPEND_HEADING: t :ANKI_NOTE_ID: 1766880829422 :ANKI_NOTE_HASH: 1414779fc1505ff82bca2d973e14598f :END: =C-v= and =M-v= *** Back page up / down ** In Emacs, what does the following binding/s do? :emacs: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_PREPEND_HEADING: t :ANKI_NOTE_ID: 1766880829425 :ANKI_NOTE_HASH: 9d320ebc5f04d484d68b230e5c459484 :END: =C-M-f= and =C-M-b= *** Back forward / backward balanced expression ** In Emacs, what does the following binding/s do? :emacs: :PROPERTIES: :ANKI_NOTE_TYPE: Basic :ANKI_PREPEND_HEADING: t :ANKI_NOTE_ID: 1766880829427 :ANKI_NOTE_HASH: d2d775ed748f863baf0c0f247f94c0b3 :END: =C-x 2= and =C-x 3= *** Back split horizontal / vertical