Category Tools

GNU: Fix Search History Backwards

To search backward in the history for a particular string, type C-r. Typing C-s searches forward through the history. The problem with Ctrl-S however is that sometimes collides with XON/XOFF flow control (in Konsole for instance). The searching is…

Tools: Grep

OR $ grep “1\|2” 1.txt 1 2 $ grep -E “1|2” 1.txt 1 2 grep -E “^1$|2” 1.txt 1 2 grep -e 1 -e 2 1.txt 1 2 egrep “1|2” 1.txt 1 2 AND grep -E ‘1.*2’ 2.txt 1 2…

Optimize dd tool bs= option

Correct dd BS= 0 # cat script.sh #!/bin/bash # #create a file to work with # echo “creating a file to work with” dd if=/dev/zero of=/var/tmp/infile count=1175000 for bs in 1k 2k 4k 8k 16k 32k 64k 128k 256k 512k…

Configuration: Screen, .screenrc

cat .screenrc hardstatus alwayslastline hardstatus string ‘%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]’ # Default screens screen -t Alt-Tab-1     0 screen -t Alt-Tab-2     1 screen -t Debian        2       ssh root@IP screen -t ICKO          3       ssh root@IP