Shell Tips
This list is continuously updated.
1. Tips
- To make
aptinstall automatically you can pass-y. You can also hit enter after running the command to automatically acceptYin the upcoming confirmation dialog. - You don’t need
sudotokill -9processes started by your user, even though usingsudocan feel like it’ll actually help the process die. Usingkill -9is enough.
1.1. How to Evaluate Commands From the Internet
- Never copy-paste these unless you know what they do.
- This means you know what the command does and what the included flags do
- Ideally you would have run this command before
- If you’re familiar enough with a command to know it won’t nuke your system, but you don’t remember the details of what it does:
- Skim the intro paragraph of the man page to refresh your memory
- You’re looking for any default behavior that does something weird
1.2. Safety
- Spend the least time in critical directories e.g.
/bootas possible. Unless you need to run something in that dir, you shouldn’t be in it.