#Linux 5 [play, chvt, arecord, mutt, curl] useful cli oneliners.

By @oneshot4/3/2021linux
  • PLAY local microphone on remote machine's speakers. Fun for pranks. Uses sox package:
    $ rec -t wav - | ssh user@remotehost play -t wav -

  • CHVT Go to vt number 3: sudo chvt 3

  • ARECORD Register an .mp3 audio from microphone input:
    $ arecord -f cd -t raw | lame -r - out.mp3

  • MUTT Send email with two attachs [two options]:
$ mutt -s "Subject" -a doc.pdf -a img.jpg -- [email protected] < body.txt
$ echo “body...” | mutt -s "Subject" -a doc.pdf -a img.jpg -- [email protected]

  • CURL Get your ip address: curl icanhazip.com






please feel free to write comments suggestions and alternatives
untitled.gif
1

comments