Community post
#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 -- [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
Replies (1)
https://twitter.com/fcwitness/status/1378184951322062851