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

in #linux4 years ago
  • 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 -- remote@mail.com < body.txt
$ echo “body...” | mutt -s "Subject" -a doc.pdf -a img.jpg -- remote@mail.com


  • CURL Get your ip address: curl icanhazip.com







please feel free to write comments suggestions and alternatives

untitled.gif