

The main thing is just make sure you know what the command is going to do before you run it. There are no specific commands that are dangerous, there are many ways to make a dangerous command. For example, if you see rm, that’s the remove command. It deletes files permanently. Once rm removes a file, there’s no trash you can retrieve it from, it’s gone forever, so make sure it isn’t deleting anything important. Some important things are / and ~. If you see a command removing / like the one Sleepless One mentioned, that’s removing all the files on your system. / is the root directory, it’s the place where everything on your computer is stored. ~ is your home directory. It’s where things like your documents, pictures, etc. are stored. So, if someone gives you sudo rm -r ~ or something, do not run that. If it’s something like ~/.config/somefile, that’s fine because it’s deleting a specific file inside your home directory rather than the whole thing.


Something like this? https://github.com/mrusme/neonmodem
It uses my Lemmy API client library :3