Linux network buffer - how to display its value

How do I display the network buffer value in a RHEL8.X system?

Here are commands to view Linux network buffer values. You can use the cat command to display them and echo command or sysctl command to tune or set your Linux kernel values.

Is Linux auto-buffered turned on?

Run:

cat /proc/sys/net/ipv4/tcp_moderate_rcvbuf

Show the default and maximum amount for the receive socket memory:

See TCP buffer space:

cat /proc/sys/net/ipv4/tcp_mem
## Default receive socket buffer size ##
cat /proc/sys/net/core/rmem_default 
## Maximum receive socket buffer size ##
cat /proc/sys/net/core/rmem_max

View the default and maximum amount for the send socket memory:

## The default setting (in bytes) of the socket send buffer ##
cat /proc/sys/net/core/wmem_default
## The maximum send socket buffer size in bytes. ##

cat /proc/sys/net/core/wmem_max

The maximum amount of option memory buffers:

To see maximum ancillary buffer size allowed per socket. Ancillary data is a sequenceof struct cmsghdr structures with appended data:

cat /proc/sys/net/core/optmem_max

View socket statistics

cat /proc/net/sockstat

See the following: