Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
1 14
Newest
 Explainer
Impact
~8k people reached

Apr
19
comment Lame compress mp3 files recursively
Instead of invoking find (for file in $(find . -name "*.mp3")), you could shopt -s globstar (for bash) and use for file in **/*.mp3.
Apr
19
comment Lame compress mp3 files recursively
cat $file | $program is equivalent to $program <$file, except for the unnecessary cat invocation (and the overhead associated with kicking off an extra process, etc). In general, you should avoid the first form. find . | $program is similarly preferable to find . >$file; $program <$file; in that it avoids creating an unnecessary file, unless you'll be reusing the list, in which case it might be preferable to write it out to a file first.
Apr
16
revised How do I prevent one user in particular from accessing my home directory?
rewrote title and body for clarity; removed inapplicable tags
Apr
16
suggested approved edit on How do I prevent one user in particular from accessing my home directory?
Apr
15
comment How do I prevent one user in particular from accessing my home directory?
@bodhi.zazen They restrict access at different levels, one of which is not applicable here. Encrypting your home directory won't prevent other users on the system from accessing it when it's mounted; restrictive permissions on the mountpoint (or a parent directory) will.
Apr
14
comment How do I prevent one user in particular from accessing my home directory?
@bodhi.zazen Encryption and ACLs solve two completely different issues. Encryption may be worth a mention here, but it's not a solution.
Jan
19
revised My laptop doesn't recognize its internal disk as bootable. How do I fix this?
updated with a crude solution
Jan
18
revised My laptop doesn't recognize its internal disk as bootable. How do I fix this?
added more information about the HDD (including its partition table)
Jan
18
comment My laptop doesn't recognize its internal disk as bootable. How do I fix this?
I didn't do this by hand; I used the graphical installer and just ticked the boxes for encryption and LVM. The disk has three partitions and (to the best of my knowledge) is set up as you've said; I'll add the partition table to my answer in a couple minutes.
Jan
17
asked My laptop doesn't recognize its internal disk as bootable. How do I fix this?
Oct
17
comment I accidentally removed my Trash and can longer put items into it, how can I get it back?
@Rmano mkdir -p ~/.local/share/Trash && cd ~/.local/share/Trash && mkdir expunged files info && chmod -R 700 .
Sep
30
awarded  Explainer
Jun
18
comment Is there any command to show how much time your ubuntu is on?
@nyuszika7h You do realize this is the Ubuntu site, right? That said, I think it warrants at least a footnote mention.
Apr
18
awarded  Notable Question
Mar
14
comment Ctrl+L in terminal
Inserting literal ^Hs or ^Ws is nice when you can't use strikethroughs. :)
Mar
11
awarded  Supporter
Mar
11
comment How do I download a YouTube video?
Given that this is a script that only invokes wget (and exposes a completely different interface to the user), I would go with the youtube-dl answer instead. youtube-dl is much more powerful.
Mar
11
awarded  Citizen Patrol
Feb
27
comment Data extraction from a text file using bash
Programs should be sent signals they can actually handle, in order to give them a chance to clean up. I don't know anything about MySQL, but this seems especially true for database-related processes. If SIGKILL is the only way to get a program to exit, uninstall it and find an alternative.
Feb
26
comment Data extraction from a text file using bash
@rajagenupula What about SIGINT and SIGHUP?