_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

command_linetools and tips.

# ifconfig -a
# ip add

https://icanhazip.com/
https://ipecho.io/plain
https://ifconfig.co/ip
https://ifconfig.me/ip
Examples
$ curl https://icanhazip.com/
$ curl https://ipecho.io/plain; echo
$ wget -qO - ifconfig.co/ip
$ lynx -dump ifconfig.me/ip; echo

back to top

-s | silent.
-4 | use ipv4.
-6 | use ipv6.
-L | if URL has been moved, request the new location.
-o | output file.
--proxy | set proxy --proxy PROTOCOL://IP[:PORT]
--socks5 | set socks5 proxy --socks5 IP[:PORT]

back to top

$ diff *
$ sdiff -s *
$ cmp -b *

$ cat t1
hello
bye
line3
$ cat t2
hello
bye
linel
$ diff *
3c3
< line3
---
> linel
$ sdiff -s *
line3                                                         | linel
$ cmp -b *
t1 t2 differ: byte 15, line 3 is  63 3 154 l

back to top

df -h [PATH]

-h | human readable size output.
-a | display all files and directories.
-d [N] | max recursion depth.
-s | summarize, display only the total.
$ du -had1 [PATH]
$ du -hs [PATH]

back to top

-u | unique, suppress duplicate lines.
-h | human numeric sort.
-r | reverse order.
-R | random sort.
-k [N] | sort by field N.
-t [C] | use C as field separator, the default separator is space.

$ cat test
a 1,12
b 3,100
d 2,1
c 10,14
b 3,100
$ cat test | sort -u
a 1,12
b 3,100
c 10,14
d 2,1
$ cat test | sort -u -k2
a 1,12
c 10,14
d 2,1
b 3,100
$ cat test | sort -u -k2 -h
a 1,12
d 2,1
b 3,100
c 10,14
$ cat test | sort -u -k2 -h -t ","
d 2,1
a 1,12
c 10,14
b 3,100
$ cat t | sort -k2 -h -t , d 2,1 a 1,12 c 10,14 b 3,100 b 3,100

back to top

wget , lynx , tor

- Archlinux manpages: curl(1) , ifconfig(8) , ip(8) , diff(1) , sdiff(1) , cmp(1)

back to top

ohazot | about | ohazot.com <admin@ohazot.com>

linux , OpenBSD 7.8 | Created:2135-11-24|Updated:2025-12-02|