• riodoro1@lemmy.world
    link
    fedilink
    arrow-up
    51
    ·
    edit-2
    1 year ago

    --no-preserve-root is a security option to keep you from accidentally removing all your files. Make sure you always use it along side the ‘-f’ option and ‘-r’ which stands for rescue - meaning rm will create a rescue copy of the deleted data.

    • xylan@kbin.social
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      That’s amazing that they would consider auto-generated responses to be appropriate in something which is supposed to be reference documentation. We are a good way from that type of querying and explanation being reliable.

  • Square Singer@feddit.de
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    1 year ago

    Using AI is much more hit and miss than executing the first google result blindly, which has been available since decades. And google didn’t cost us our jobs, so I am not afraid of AI.

    • sethboy66@kbin.social
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      Search engines like Google have cost many people there job; the list of now-rare positions and/or duties associated with a position (thereby thinning the need for such employment) that search engines have replaced is long.

  • NormalC@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Obilgatory reminder to actually read the manpage. They were written for a reason. If you can’t do that then either install a version of the “tldr” program like “tealdeer” or use curl cheat.sh/

    • magikmw@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I refuse to read manpages because I hate mansplaining and I wont have The Man tell me what to do.

    • Rodeo@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Personally I find the built in --help option to be much more useful than manpages. Manpages are excessively wordy and almost never have info I’m looking for without having to search.

      Built in help options usually concisely list all the options with a brief explanation of what they do. That’s perfect.

  • skillissuer@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    while i get that at some point chatgpt could have been mildly good at bolierplate programming, it’s much worse at chemistry. just ask it how to make paracetamol

    • Kayel@aussie.zone
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I’m assuming they’ve blocked out chemistry from the training data. It’s crazy how easy it is to make many things from common chemicals, the liability would be insane.

    • Zeth0s@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      Is this answer correct? I can’t judge, as I have no idea how aspirin active compound is synthetized.

      Answer from gtp-4:

      Aspirin, also known as acetylsalicylic acid (ASA), can be synthesized through a chemical reaction involving salicylic acid and acetic anhydride. Here’s the general process:

      1. Salicylic Acid Preparation (if needed): If starting from other compounds like phenol, salicylic acid may need to be synthesized first.
      2. Acetylation of Salicylic Acid: Salicylic acid is reacted with acetic anhydride. [ \text{{salicylic acid}} + \text{{acetic anhydride}} \rightarrow \text{{acetylsalicylic acid}} + \text{{acetic acid}} ]
      3. Purification: The crude product is often purified by recrystallization, typically using a solvent like ethanol or water.
      4. Drying: The purified aspirin is dried to remove any remaining solvent.
      5. Characterization: The synthesized aspirin may be characterized using methods like melting point determination, infrared spectroscopy, or other analytical techniques to ensure purity and identity.

      In a laboratory setting, the reaction is often catalyzed by an acid such as sulfuric acid, which speeds up the process. The reaction is typically carried out at a moderate temperature, such as around 80°C.

      Safety precautions must be taken as the chemicals involved can be corrosive, and proper waste disposal is necessary.