Files
lk/command.rec
Malin Freeborn c00c9aed16 begin command-snippets db
command.rec will be stored here, and generate articles.
2026-03-26 22:44:23 +01:00

52 lines
1.2 KiB
Plaintext

%rec: command
%doc: shell command examples
%type: aim line
%allowed: aim cmd bin tag
aim: Put output into column
cmd: du -h /etc/* | column
bin: column
tag: format
aim: Reformat file with an explicit separator (`-s`)
cmd: column -ts: /etc/passwd
bin: column
tag: format
aim: Give columns names (`-N`), so you can hide some (`-H`)
cmd: column -ts: -N User,PW,UID,GID,Description,Home,shell -H PW,GID /etc/passwd
bin: column
tag: format
aim: Reorder with `-O` (unspecified items remain)
cmd: column -ts: -N User,PW,UID,GID,Description,Home,shell -H PW,GID -O User,Description,shell /etc/passwd
bin: column
tag: format
aim: Output to json format with `-J`
cmd: column -J -ts: -H PW,GID,shell -N User,PW,UID,GID,Description,Home,shell /etc/passwd
bin: column
tag: format
tag: json
aim: Make a QR Code image:
cmd: qrencode 'https://play.google.com/store/apps/details?id=org.briarproject.briar.android' -o "$FILE".png
bin: qrencode
tag: qr
aim: Make a QR Coded message in the terminal:
cmd: qrencode -t ansi "Hello World"
bin: qrencode
tag: qr
aim: Read a QR Code image:
cmd: zbarimg $FILE
bin: qrencode
tag: qr
aim: Show wifi QR code (only with Network Manager):
cmd: nmcli device wifi show-password
bin: qrencode
tag: qr
tag: wifi