All tags
safety
Narrow down
Shell7
- Tip
crontab cron.txtcrontab file.txt replaces your whole crontab, it doesn't add to itExplains how installing a crontab from a file works, and how to add a line without losing the rest.30 Nov 2026 - Tip
sudo parted -s -a optimal /dev/sdX mklabel gpt mkpart data ext4 1MiB 100%Parted -s partitions a new disk in one aligned lineCreates a GPT partition table and one aligned partition on a new disk in a single command.27 Nov 2026 - Tip
sudo sfdisk --dump /dev/sdX > sdX.dumpSfdisk --dump saves a disk's partition table to a text fileSaves the partition layout of a disk to a text file you can restore from later.27 Nov 2026 - Tip
sudo badblocks -sv /dev/sdXBadblocks -sv reads a whole disk to find bad blocks without writing to itReads every block of a disk and lists the ones that cannot be read, without writing.27 Nov 2026 - Tip
sudo mount -o remount,ro /mnt/dataMount -o remount,ro puts a disk read-only without unmounting itSwitches a mounted filesystem to read-only in place, so a failing disk stops receiving writes.24 Nov 2026 - Tip
sudo wipefs /dev/sdbWipefs lists the signatures on a disk before you erase any of themLists and removes old filesystem and RAID signatures from a disk, with a dry-run option.1 Feb 2026 - Tip
sudo dd if=debian.iso of=/dev/sdX bs=4M status=progress conv=fsyncDd status=progress shows a disk copy, and of= decides what you destroyCopies an image to a disk with live progress, and the target device decides what gets overwritten.1 Feb 2026
Other tips5
- Tip
On the watch: Settings > SOS > Fall DetectionTurn on Fall Detection on your watch, or limit it to workoutsLet the watch call for help after a hard fall when you can't.1 Dec 2026 - Tip
mv -n card2/*.jpg ~/Pictures/all/mv -n moves files without overwriting any that already existMerge files into a folder while keeping whatever is already there.1 Dec 2026 - Tip
find: possible unquoted pattern after predicate `-name'?Quote the pattern after find -name, or the shell changes it firstPrevents the shell from expanding a wildcard before find gets to see it.30 Nov 2026 - Tip
find ~/Downloads -name '*.iso' -ok rm {} \;find -ok asks before it runs a command on each fileAsks for a yes or no before find runs a command such as rm on each file.27 Nov 2026 - Tip
find . -name '*.tmp' -deletePut -delete last in find, or it deletes more than you thinkDeletes the files that match your tests, as long as -delete comes last in the command.19 Aug 2026
Phone1
Storage1
Git1
Nothing matches.