All commands
All commands (14,228)
the last day<br>the last week<br>the last month<br>all time
sorted by
date<br>votes
Ensure an EOF-newline for every git-tracked text file (that changed since the main branch), except for .meta files
Ignores deleted files since main. dos2unix already skips binary files. Safely NUL-delimited. Add -i for a dry run.
This is sample output - yours may be different.
git diff --diff-filter=ACMRTUX --name-only main -z | grep -zvE '(.meta)' | xargs -0 dos2unix --add-eol
Hype
·<br>2026-06-23 03:50:58
Submit alternative
Report as malicious
Report as a duplicate
Functions:
diff
grep
xargs
-->
Extract GitHub repository URLs from BlackArch tools pages
Downloads BlackArch tool pages and prints only GitHub links using pure awk filtering.
This is sample output - yours may be different.
curl -sL blackarch.org/{tools,recon}.html | awk -F'"' '$4 ~ /^https:\/\/github\.com\// { print $4 }'
wuseman1
·<br>2026-02-12 08:38:04
Submit alternative
Report as malicious
Report as a duplicate
Functions:
awk
Tags:
awk
curl
-->
Import a wireguard configuration into networkmanager
This is sample output - yours may be different.
nmcli connection import type wireguard file wireguard_config.conf
wuseman1
·<br>2026-02-11 20:31:36
Submit alternative
Report as malicious
Report as a duplicate
Functions:
file
type
Tags:
nmcli
wireguard
-->
Print a full-width horizontal line using the current terminal width (custom character supported)
This is good when the other option on this site not includes ´tput´ like on minimal shell
This is sample output - yours may be different.
printf '%*s\n' "${COLUMNS:-80}" '' | tr ' ' "${1-_}"
wuseman1
·<br>2026-02-11 18:27:03
Submit alternative
Report as malicious
Report as a duplicate
Functions:
printf
tr
Tags:
printf
-->
Send a file to the first reachable KDE Connect device
This is sample output - yours may be different.
kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share kdeconnect-cli-send-file.sh
wuseman1
·<br>2026-02-03 03:10:30
Submit alternative
Report as malicious
Report as a duplicate
Tags:
kdeconnect-cli
kdeconnect
-->
Play raw entropy noise via ALSA (bypass PulseAudio/PipeWire)
This is sample output - yours may be different.
cat /dev/urandom | play -q -t raw -r 8000 -e unsigned-integer -b 8 -c 1 -t alsa default
wuseman1
·<br>2026-01-27 13:25:49
Submit alternative
Report as malicious
Report as a duplicate
Functions:
cat
-->
Trigger a notification on USB device insertion using udev
This is sample output - yours may be different.
udevadm monitor --udev --subsystem-match=usb | gawk '/add/ { system("espeak \"USB device attached\"") }'
wuseman1
·<br>2026-01-27 12:24:27
Submit alternative
Report as malicious
Report as a duplicate
Functions:
gawk
Tags:
udevadm
-->
Minimal Runtime Kernel Module Dependency View
This is sample output - yours may be different.
lsmod | awk 'NR>1 && $4!="-" {print $1; split($4,a,","); for(i in a) print " -> used by:", a[i]; print ""}'
wuseman1
·<br>2026-01-26 19:00:04
Submit alternative
Report as malicious
Report as a duplicate
Functions:
awk
lsmod
Tags:
lsmod
-->
Go to the Nth line of file
This is sample output - yours may be different.
awk 'NR==13' /etc/services
atoponce
·<br>2025-11-25 18:40:02
Submit alternative
Report as malicious
Report as a duplicate
Functions:
awk
Tags:
awk
goto
-->
Quick way to sum every numbers in a file written line by line
This is sample output - yours may be different.
-1
awk '{sum += $0} END {print sum}' file
atoponce
·<br>2025-11-25 18:21:44
Submit alternative
Report as malicious
Report as a duplicate
Functions:
awk
-->
Show tcp connections sorted by Host / Most connections
This is sample output - yours may be different.
netstat -ntu | tail -n +3 | awk '{print $5}' | sed 's/:[0-9]*$//' | sort | uniq -c | sort -rn
atoponce
·<br>2025-11-25 18:15:39
Submit alternative
Report as malicious
Report as a duplicate
Functions:
awk
netstat
sed
sort
tail
uniq
-->
True random number generator in pure ZSH
Do not use this in production! This is a true hardware random number generator using your system as the entropy source. It models flipping a coin by pitting a fast clock (the CPU) against a slow clock (the RTC). The CPU models the coin flipping head over tails during flight and the RTC models the duration of the coin's flight in the air.<br>A timer is set 1 millisecond into the future and a bit is flipped as fast as possible before the timer expires. 256 bits are collected then hashed with SHA-256 to whiten the data and ensure uniformity.<br>This makes some assumptions however. It assumes that your system is not compromised. It assumes your system is generating enough interrupts for the kernel scheduler to be unpredictable on what gets CPU priority. It assumes that your installed sha256sum(1) command is correctly implemented.<br>Just because you can,...