bash¶
Make changes in .bashrc immediately available¶
bashrc-reload() {
builtin unalias -a; builtin unset -f $(builtin declare -F | \
sed 's/^.*declare[[:blank:]]\+-f[[:blank:]]\+//');
source ~/.bashrc;
}
Delete static and dynamic arp for /24 subnet¶
Preserve your fingers from cd ..; cd ..; cd..; cd..;¶
Get executed script's current working directory¶
Scan all open ports without any required program¶
for i in {1..65535}; do
(echo < /dev/tcp/127.0.0.1/$i) &>/dev/null && \
printf "\n[+] Open Port at\n: \t%d\n" "$i" \
|| printf ".";
done
Create a txt files with 10000 rows¶
for FILE in *.full ; do
split -l 100000 $FILE; mv -f xaa `echo "$FILE" \
| cut -d'.' -f1`.txt; rm -f x*;
done
Last update: August 10, 2022
Created: August 10, 2022
Created: August 10, 2022