TanNoisEr-IT avatar

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

oneshot

Published: 03 Apr 2021 › Updated: 03 Apr 2021#Linux 5 [play, chvt, arecord, mutt, curl] useful cli oneliners.

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

  • 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

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

Written by

Tech blog. Mainly focused on Linux and Free Software, featuring geeky articles and personal insights.

Read more #linux posts


Best Posts From TanNoisEr-IT

We have not curated any of oneshot's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From TanNoisEr-IT