Command Line Interface
Text-based interface.
Resources
- The Linux Command Line for Beginners | Ubuntu
- If you don't know what are
cd
,ls
, andgrep
, this might be where to start - Ultimately, learn by trial and error
- If you don't know what are
- Command Line Interface Guidelines
- A guide to building command line interfaces, very detailed and informative
- The philosophy of a good CLI and the guidelines to follow when building one
- The terminal | furbo.org
- A long list of commands in Unix and Mac
Sites
- Modern Unix
- A collection of modern alternatives for some classic Unix commands
- Explain Shell
- Visually breaking down and explaining a shell command
- tldr.sh
- Simplified and community-driven manual
Links
- What is the SSH randomart image for?
- There is a "randomart image" from
ssh-keygen
from the terminal - Support comparing host keys visually, especially recognizing host keys that have been changed
- There is a "randomart image" from
- CLI tools in the Python standard library | Simon Willison
(HN)
- Server current directory over HTTP:
python -m http.server 8000
- Pretty-print JSON:
echo '{"key": "value"}' | python -m json.tool
tokenize
,base64
,random
,calendar
, etc.
- Server current directory over HTTP:
- What does
2>/dev/null
means?>
means redirect,2> file
means redirectstderr
to file,/dev/null
is the null device
- Entering text in the terminal is complicated | Julia Evans
(HN)
- The baseline:
- No arrows, no history
Ctrl+W
delete word,Ctrl+U
delete linestty -a
list what's supported in the terminal
readline
:- Up arrow to previous command
Ctrl+E
orEnd
,Ctrl+A
orHome
,Ctrl+left/right
back/forward 1 wordCtrl+R
to search historyrlwrap python
to wrap a program with readline support
- The baseline:
- Terminal Colours are Tricky | Julia Evans
- 16 ANSI colours, configuring colours, problem of colours in vim, etc.