--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.It means No! Preserve Root.
I see you also know Lionel Hutz
No, money down!
the
/
means ‘working directory only’, a security feature to prevent accidently using absolute paths.Really clever
Use
sudo
beforerm
to improve efficiency.Sudo is short for “super do”, which means “do this at super speed”
I’m very new to Linux; could you explain what this does for me?
Some poor soul is going to take this to the bank and have a horrible day. You could have at least told them to use the -p flag to protect any critical system files from being removed.
Mozilla recently tried to integrate some AI stuff into its MDN. The corresponding Github issue is correctly titled “MDN can now automatically lie to people seeking technical information”.
¯\_(ツ)_/¯
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.
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.
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.
Don’t forget -r for when you -really want to delete that file
Use
--no-preserve-root
if you want to keep a backup of the file offsite in Norway.No! Preserve root!
I am root
Just because Google is stupid doesn’t mean Bing can’t do it:
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/
I refuse to read manpages because I hate mansplaining and I wont have The Man tell me what to do.
I know right, like give me womanpages I’d read those
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.
Ah yes -f for foncirmation
Just make an alias that mv’s the file to a “trash” folder.
First thing I do is make a recycle bin alias. Everytime.
It’s wild it doesn’t come like that out of the box.
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
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.
liability… LOL
No they didn’t, gpt-3 was just spectacularly wrong
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:
- Salicylic Acid Preparation (if needed): If starting from other compounds like phenol, salicylic acid may need to be synthesized first.
- Acetylation of Salicylic Acid: Salicylic acid is reacted with acetic anhydride. [ \text{{salicylic acid}} + \text{{acetic anhydride}} \rightarrow \text{{acetylsalicylic acid}} + \text{{acetic acid}} ]
- Purification: The crude product is often purified by recrystallization, typically using a solvent like ethanol or water.
- Drying: The purified aspirin is dried to remove any remaining solvent.
- 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.