Linux Cli
Scan image to pdf
scanimage --resolution 300 --format tiff >xxx.tif
convert xxx.tif /tmp/fileName-01.pdf
Scan image to pdf in 1 command
scanimage -p --resolution 600 --mode Gray -x 215.9 -y 279.4 | pnmtops -imageheight 11 -imagewidth 8.5 | ps2pdf - output.pdf
Lists last 3 pdf in a directory, copy 1st page from a pdf and copies the page to the output directory
ls *.pdf -tr | tail -n 3 | while read -r a; do pdftk $a cat 1 output ~/Dropbox/Ucetnictvi/2022/kahle/03/pf/$a; done
Copy file to remote host using ssh
scp localfile.csv pavel@hostname:/tmp/
Scan for computers in network
sudo nmap -sS -p 22 192.168.1.0/24 | grep "Nmap scan"
Search files containning x
grep -A 1 -B 1 --exclude-dir=.* "x" ./.*
Search class in jars
find . -name "*.jar" | xargs grep X.class