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

oneshot(55)
Published in
#linux
Words
49
Reading
1 min
Listen
Play
5y
  • 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

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