The "$" prompt is shorthand to indicate the command is run as a non-root user. If you see "# ls -lt" that indicates the command should be run as root. The problem lies with whoever set up the copy button to include the prompt as part of the copied command.
It's used in documentation mostly to distinguish the command from stdout. And it's verbatim what you see if you copy-paste from most default bash shells.
The "$" prompt is shorthand to indicate the command is run as a non-root user. If you see "# ls -lt" that indicates the command should be run as root. The problem lies with whoever set up the copy button to include the prompt as part of the copied command.
How do you specify this on GitHub markdown?
this is a widespread problem - many libraries, git repos follow this convention unfortunately
It's used in documentation mostly to distinguish the command from stdout. And it's verbatim what you see if you copy-paste from most default bash shells.