In RHEL 8 RH124 Chapter 3.9, there is this:
In real life, it looks like this:
The real life example was done on a CentOS 8 machine (which already had a kernel update). As can be seen, ls ~root and ls ~user do not return what is shown in the examples from Gilmore content.
The mistake is that the ls command should not of been used in each of the two cases -- they will not return the output shown (which makes me kid of wonder how it got into the content...).
echo, instead, should have been used (and, if one looks, it says as much in the text immediately preceding the examples).