I think that it is a cave where people could live in, not any cave. The 八 under the roof should be the support wood put by people.
Its small seal script is
same as the big seal script.
Its clerical script is
some similarity, but much less like the cave. If you didn't see the above scripts, you may not think it as cave at first glance.
The current standard printing script for traditional or simplified character is
same as the clerical script. It is a pictography character.
Its Pinyin is "Xue4".