sed: stream editor for filtering and transforming textMy favourite
busybox toolkit contains sed too.
Adventures in *nix and #opensource… :-)
venture to give something back
knowledge shared == knowledge squared
sed: stream editor for filtering and transforming textbusybox toolkit contains sed too.
vi commands that I keep forgetting every now and then. My favourite is busybox vi
| desktop | laptop | phone | tablet |
|---|---|
| gentoo | | android v2.x |
| runit | openrc? busybox tmux lynx elinks i3wm jwm, wpa_gui, volumeicon sylpheed mpv sgt-puzzles qupzilla | firefox | k9 mail Search based launcher Tiny Home Draweroid X-plore QuickPic f-droid Rmaps MapFactor Navigator Train Scout Hanzovy Sachy Puzzles 250+ Solitaire And Bible Lectio Divina Lit Jango Radio Spotify |
though practical issues have me often irregularly using many others not listed above.
what consists your environment, and why?
kerframil: my go-to 'vanilla' pastebin is termbin.com, which can be used with nc (busybox has an nc implementation)
runit, this time on my gentoo.gentoo (and it's community) beyond expectation. So much that the debian to gentoo transition continues to gather pace.bloatware?) tools with minimal busybox, wherever I could. Busybox is stable, and fulfils all my requirements rather nicely. This led me to voidlinux which has that same ethos in it's core. It is a great booster that gentoo could satisfy me on this count too.
netcat-openbsd is leaner, cleaner & more efficient than debian netcat-traditional. if you get a choice, prefer the openbsd version.busybox wherever i can, including nc and tar. small, simple, clean, standard, available the same everywhere.$ busybox nc Usage: nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG] Open a pipe to IP:PORT or FILE -e PROG Run PROG after connect -l Listen mode, for inbound connects (use -l twice with -e for persistent server) -p PORT Local port -w SEC Timeout for connect -i SEC Delay interval for lines sent -f FILE Use file (ala /dev/ttyS0) instead of network
$ busybox tar
Usage: tar -[cxtZzJjahmvO] [-f TARFILE] [-C DIR] [FILE]...
Create, extract, or list files from a tar file
Operation:
c Create
x Extract
t List
f Name of TARFILE ('-' for stdin/out)
C Change to DIR before operation
v Verbose
Z (De)compress using compress
z (De)compress using gzip
J (De)compress using xz
j (De)compress using bzip2
a (De)compress using lzma
O Extract to stdout
h Follow symlinks
m Don't restore mtime$ nc -l -p {port} | tar xpv[z|j]f -$ tar cpv[z|j]f - {directory} | nc {destination host/ip} {port}[z|j] compression: use over slower networks. ignore for faster networks and/or slower computers.tar streams much faster copying than scp 'ping-pong', especially when you have lots of files.$ ssh {some-server} ‘cd /some/dir && tar cz dir’ | tar xz$ tar cz dir | ssh {some-server} `cd /some/dir && tar xz`$ nc -l {port} [-vv] | dd of={disk.img} bs=1M$ dd if=/dev/sda bs=1M | nc {box2 host/ip} {port} [-vv] -q 10[-vv] use at the box1 (and/or box2, if fast enough)$ nc -l {port} [-vv] | dd of=/dev/sda bs=1M$ dd if={disk.img} bs=1M | nc {box1 host/ip} {port} [-vv]$ tar cpvJf - {directory} | nc {box2 host/ip} {port}$ nc -l -p {port} | dd of={directory}.tar.xz bs=1k