500

A golden oldie.

you are viewing a single comment's thread
view the rest of the comments
[-] kboy101222@sh.itjust.works 5 points 8 months ago

Okay honest question, what does the # actually do? Every time I try and use it (fedora 42), it just doesn't run

[-] NoFood4u@sopuli.xyz 10 points 8 months ago

It's just a convention. commands starting with $ are meant to be executed by a user. commands starting with # are meant to be executed by root.

[-] aarch64@programming.dev 4 points 8 months ago* (last edited 8 months ago)

# indicates a comment in shell scripts, it's interpreted the same way on a command line. That's why it's doing nothing. In this case, the # isn't part of the command though. It's to indicate that it's a root shell. You'd see $ for a regular not-root shell. It's part of that bit of text with your username, hostname, and current directory (with most default shell configurations, look up the PS1 Bash variable) that comes before the command you're typing.

this post was submitted on 29 Dec 2025
500 points (98.4% liked)

People Twitter

10365 readers
575 users here now

People tweeting stuff. We allow tweets from anyone.

RULES:

  1. Mark NSFW content.
  2. No doxxing people.
  3. Must be a pic of the tweet or similar. No direct links to the tweet.
  4. No international politcs
  5. Be excellent to each other.
  6. Provide an archived link to the tweet (or similar) being shown if it's a major celebrity, figure or any politician. https://web.archive.org/save is an option. Archive.is is no longer recommended because they remove/alter content.
  7. If a tweet (or similar) makes a statement of fact, either mark it as "satire" in the body or provide the original source link backing up the statement

founded 3 years ago
MODERATORS