Questions tagged [safety]
The safety tag has no summary.
25 questions
2 votes
1 answer
130 views
Is it safe to use a loop device to circumvent EBUSY on a block device underlying device-mapper?
I’m trying to include the beginning of a disk block device (the GPT area) read-only in a device-mapper linear mapping. This block device also contains my root filesystem, as such the partition housing ...
2 votes
1 answer
859 views
Is it safe to add LVM cache device to existing LVM volume group while filesystem is mounted?
I have an existing LVM volume group with a 10 TB logical volume mounted as an ext4 system which is actively in use. Is it safe to run the command lvconvert --type cache --cachepool storage/lvmcache-...
0 votes
1 answer
241 views
How to run software in terminal offline?
I would like to run a flatpak program offline through the terminal (flatpak spoty runs as sudo!). I am looking for a simple command like: "runoffline" flatpak run application. What would be ...
1 vote
0 answers
665 views
How to safely remove directory tree in script with path defined by a variable
This is a very basic question, and surely has been asked before, but I am having trouble finding the answer or guidance. There are e.g. these but they don't quite hit the mark: How to safely remove ...
0 votes
2 answers
65 views
Is staying in Fedora with a 4 gigs system Safe?
So I recently switched to Fedora Linux, and At least it eats 1.5 gigs of ram after I installed software, it ate 1.7, and I have a 4 gig system, so is it safe? I am referring to Memory
0 votes
0 answers
242 views
I am trying to find a spyware agent like "SpyAgent" to monitor users on a Linux system
I am trying to see if I can find a user monitoring system for Linux. Technically I am looking for spyware that I can install on my system so when I let my little nephew use my laptop I know he isn't ...
1 vote
1 answer
441 views
How to protect potentially destructive command line options?
I'm curious if anyone can help me with what the best way to protect potentially destructive command line options is for a linux command line application? To give a very hypothetical scenario: imagine ...
-3 votes
3 answers
136 views
Ensure I am a in specific folder before calling rm [closed]
in my bash script, I have some very danger lines like : rm -r * if it is mis-run in some folder, it would be very disastrous.Basically, I would need to add an if condition to make this does not ...