Before each command, run the prefix (default Ctrl+B). This will write all scrollback from that pane to a file ~/buffer.txt.
Before each command, run the prefix (default Ctrl+B). This will write all scrollback from that pane to a file ~/buffer.txt.
tail -n 50 -f your.log –folow or -f FILE to output appended data as the file grows –lines or -n K output the last K…
[bash]$ echo {0..9} 0 1 2 3 4 5 6 7 8 9[/bash] [bash]$ echo b{a,e,i,o,u} ba be bi bo bu [/bash] [bash]$ echo x{0..9}y…
sudo find /proc -maxdepth 2 -name maps -exec grep -HE ‘\(deleted\)’ {} \; | cut -d/ -f3 | sort -u | xargs –no-run-if-empty ps Looking…
[bash]#!/bin/sh HOST="silveiraneto.net" if ping -c 1 $HOST > /dev/null then echo your command fi [/bash] replace silveiraneto.net for your desired hostname or ip ping sends…
$ cat AtoF A B C D E F Print only odd lines sed -n ‘p;n’ AtoF A C E -n suppress automatic printing of…
When I came here to this room I found this old big tv laying around. Old but perfectly functional. First I put a tv cable…
O pre-requisito é o notify-send, um utilitário de linha de comando do libnotify. No Ubuntu: sudo aptitude install libnotify-bin E aqui o script em si:…
Nem só de morte vive o kill. Suponha que você tem um processo chamado program e quer congelar seu funcionamento. Para congela-lo sem mata-lo você…
Este aqui é um bot bem simples para Twitter. Diariamente, as nove da manhã ele posta qual vai ser o cardápio do RU (Restaurante Universitário)…