To list hidden files and directories in the current directory in most Unix-based systems (like Linux and macOS), you can use the following command in your terminal:
[root@example ~]# cd /var/www
[root@example /var/www]# ls -lap | grep -v / | egrep "^."
If you want to list only hidden directory/folder then run:
[root@example ~]# cd /var/www
[root@example /var/www]# ls -lap | egrep "^..*/$"
This option shows hidden files along with detailed information such as permissions, owner, file size, and modification date.