wiki.titan2x.com

by Janos Gyerik

UNIX, Linux commands and tools

From wiki.titan2x.com


rdiff

#   OLD is some large binary file
#   NEW is OLD with some changes
#   serious network bandwidth saving is possible by transferring only the delta
#
rdiff signature OLD OLD.signature
rdiff delta OLD.sig NEW NEW.delta
md5sum NEW > NEW.md5
rdiff patch OLD NEW.delta PATCHED
md5sum PATCHED > PATCHED.md5
cmp NEW.md5 PATCHED.md5

Compression

  • filtering:
    • lzop: very fast but compresses little
    • lzma: can compress 4 times more than gzip (at the price of speed)
  • non-filtering:
    • rzip: can compress more and faster than gzip, with options can compress much more but slower
    • 7za: can compress as much as lzma, slightly faster

See this Linux Journal article for more detailed comparison.

Image:compression1.png

Other

Commands that look useful but didn't have time to check.

ntop
top for network monitoring. It seems to need a database and webserver as the front-end though.
ClusterSSH (cssh)
multiple ssh windows and one master window
k9copy
copy of one or more titles from a DVD9 to a DVD5, in the same way than DVDShrink for Microsoft Windows (R).
mp3wrap, mp3merge
concatenate mp3 files without loss of quality
xclip
access the X Window System Clipboard from the command line
lspci | xclip
xclip -o
wmctrl
control windows (position, size, stickiness, etc)
tellico
desktop database software
corkscrew
Tunnel TCP connections through HTTP proxies
xtermcontrol
dynamic configuration of xterm properties, for example:
    ssh() {
           xtermcontrol --fg "MediumSeaGreen"
           command ssh "$@"
           xtermcontrol --fg grey90
    }
pstree
view processes structured in a tree
Best categories
Users