Bookmarked 😜 Mind adding a dark mode?
- 0 Posts
- 6 Comments
Joined 3 years ago
Cake day: June 17th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
in
[[there is generally no need for quoting, except the right hand side of an=comparison
in
[[, empty strings are falsy, so this also works:[[ ! $VARIABLE1 && ! $VARIABLE2 ]] && echo "OK"
The variables need a dollar sign:
$VARIABLE1help testshows what-nand-zdo.
Never use
a && b || c. It is not the same asif a; then b; else c; fi: whenasucceeds butbfails, it will run bothbandc.I would not bother with
[unless you absolutely need compatibility with non-bash shells.


Most of these are not about the Linux kernel, but about distro / personal choice. Android tracks you and doesn’t make you use the command-line a lot. Fedora / Ubuntu (and others?) like to reboot for every little update.