Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
notes:linux.tips.and.tricks [19/03/2021 22:13]
alez [howto show 'dd' progress]
notes:linux.tips.and.tricks [14/09/2023 10:31] (versione attuale)
alez [Socat / YPort]
Linea 1: Linea 1:
 ====== Linux Tips & Tricks ====== ====== Linux Tips & Tricks ======
 +===== Bash tricks for manipulating files =====
 +
 +Move all files matching certain pattern from subdirectories in another single target folder:
 +<​code>​find . -iname '​*.jpg'​ -exec mv {} ../target/ \;</​code>​
 +
 +Remove all files matching certain pattern in here and in all subdirectories:​
 +<​code>​find . -iname "​*.poo"​ -exec rm -r "​{}"​ \;</​code>​
 +
 +Remove all empty subdirectories in here:
 +<​code>​find . -depth -type d -empty -exec rmdir "​{}"​ \;</​code>​
 +
  
 ===== disk UUID's ===== ===== disk UUID's =====
Linea 14: Linea 25:
  
 ===== PDF tools ===== ===== PDF tools =====
 +
 +Lower file-size (quality) of a pdf document
 +
 +<​code>​gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/​ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf</​code>​
 +''​-dPDFSETTINGS=/​screen''​ for even lower size/​quality
  
 pdfjoin , no rotate ​ pdfjoin , no rotate ​
Linea 31: Linea 47:
  
 <​code>​gs -o output.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFFitPage -dCompatibilityLevel=1.4 input.pdf</​code>​ <​code>​gs -o output.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFFitPage -dCompatibilityLevel=1.4 input.pdf</​code>​
 +
 +join and rotate ​
 +
 +<​code>​pdfjam --outfile out.pdf --landscape --angle 90 input1.pdf input2.pdf</​code>​
 ===== Reset keyboard ===== ===== Reset keyboard =====
  
Linea 65: Linea 85:
  
 See also [[http://​nairobi-embedded.org/​transfering_buildroot_fs_data_into_qemu_disk_images.html]] See also [[http://​nairobi-embedded.org/​transfering_buildroot_fs_data_into_qemu_disk_images.html]]
 +
 +----
 ===== Socat / YPort ===== ===== Socat / YPort =====
 +
 +
 +''​socat -d -d pty,​raw,​echo=0 pty,​raw,​echo=0''​
  
  
Navigazione

Table of contents

Contact

For any info you can write to:
Per qualunque info potete scrivere a:
info[at]maetech[dot]it

Ads

Stampa/Esporta
QR Code
QR Code notes:linux.tips.and.tricks (generated for current page)