Installing the Kernel and cd linux-5.*

This is manual:
https://docs.rockylinux.org/en/guides/custom-linux-kernel/
about this step:

We need to change (cd) into the kernel source directory, after which we can begin the kernel configuration. But before beginning the actual kernel configuration, you should clean (prepare) the kernel build environment by using the make mrproper command:

cd linux-5.*
make O=~/build/kernel mrproper


Ok. But there’s a problem.
More:
[fred@rocky01 ~]$ ls -la
total 125456
drwx------. 7 fred fred 4096 Apr 9 19:26 .
drwxr-xr-x. 3 root root 4096 Apr 8 20:06 …
-rw-------. 1 fred fred 2749 Apr 10 12:05 .bash_history
-rw-r–r–. 1 fred fred 18 Jul 27 2021 .bash_logout
-rw-r–r–. 1 fred fred 141 Jul 27 2021 .bash_profile
-rw-r–r–. 1 fred fred 376 Jul 27 2021 .bashrc
drwxrwxr-x. 3 fred fred 4096 Apr 9 19:26 build
drwx------. 3 fred fred 4096 Apr 9 19:24 .cache
drwx------. 3 fred fred 4096 Apr 9 19:24 .config
drwxrwxr-x. 24 fred fred 4096 Apr 9 19:30 linux-5.17.2
-rw-rw-r–. 1 fred fred 128420988 Apr 9 17:53 linux-5.17.2.tar.xz
drwx------. 3 fred fred 4096 Apr 9 19:24 .local
-rw-rw-r–. 1 fred fred 0 Apr 9 17:41 sudo
[fred@rocky01 ~]$ cd linux-5.*
-bash: cd: too many arguments
[fred@rocky01 ~]$

Where from this “-bash: cd: too many arguments” error ??
Serg

Try

cd linux-5.17.2

The asterisk is wildcard you need to be more specific and use full directory name