After installing xorg server packagges this is what happend:
The first command worked
The second command gave me:
zsh: $: command not found...
zsh: unknown file attribute: 8
The third command gave me:
zsh: $: command not found...
zsh: no such file or directory: /etc/X11/xorg.conf.d/00-avoid-glamor.conf
zsh: no such file or directory: /etc/X11/xorg.conf.d/99-nvidia.conf
zsh: no such file or directory: /etc/X11/xorg.conf.d/nvidia.conf
[1] 18817 segmentation fault (core dumped) /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[1] 18825 segmentation fault (core dumped) /usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so
zsh: permission denied: /usr/share/X11/xorg.conf.d/nvidia.conf
The $ is often used in unix docs to show its a shell command.
You are not expected to type the $, just remove it.
Of course there is no way to know this convention if you new to fedora/linux.