nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

When you delete a line of code that you thought was useless…

Posted: 07 May 2017 01:22 PM PDT

Or when you run rm -rf / on Linux or Unix-like system 😉

rm-rf

rm-rf

Another gif showing the same issue:

Delete a block of code

Delete a block of code

Now, I am hitting u, u, u in vim to undo (ctrl-z in other IDE) like a maniac to get back that line or a code block. Lmao.

Linux and Unix chown and chmod command security problem illustrated

Posted: 07 May 2017 01:11 PM PDT

The chown command change file owner and group. The chmod command change file mode (bits) i.e. permission. A wrong permission can create problems on Linux or Unix-like system. It is clearly illustrated in this comic.

chown and chmod

chown and chmod

Credit: turnoff.us

HandBrake For Mac Mirror Server Was Compromised And Infected With PROTON Malware

Posted: 07 May 2017 03:22 AM PDT

HandBrake is an open-source and free transcoder for digital video files. It makes ripping a film from a DVD to a data storage device such as NAS boxes easier. HandBrake works Linux, macOS, and Windows. A Recent version of Handbrake for Mac and possibly other downloads at the same site infected with malware. If you have downloaded HandBrake on Mac between 2/May/2017 and 06/May/2017, you need to delete the file ASAP. HandBrake infected with a new variant of OSX.PROTON malware.