Reputation
293
Top tag
Next privilege 300 Rep.
Create new tags
Badges
2 12
Impact
~8k people reached

Jul
28
comment Execute sh with parameters in bash
Make sure you understand the difference between single quotes and double quotes here, it can make quite a difference. For example, the command sudo sh -c "echo $USER" gives a different result to sudo sh -c 'echo $USER'.
Jul
22
revised How can I delete a trailing newline in bash?
Specify why command substitution is not good enough
Jul
22
awarded  Popular Question
Jul
21
awarded  Notable Question
Jun
22
comment Can rsync resume after being interrupted?
According to DanielSmedegaardBuus's answer, -P or --partial is not the right answer, since it will delete any progress when it gets interrupted on the receiving side.
Jun
18
awarded  Autobiographer
Feb
10
awarded  Popular Question
Dec
10
accepted How do I write all lines from less to a file?
Dec
10
comment How do I write all lines from less to a file?
I want a solution from less once I've already opened less.
Dec
10
asked How do I write all lines from less to a file?
Oct
29
revised How to treat strings with spaces as a whole in bash?
Bash does not allow spaces around the equals sign, and this bug is not central to the question
Oct
29
suggested approved edit on How to treat strings with spaces as a whole in bash?
Oct
24
awarded  Informed
Oct
7
comment How can I find broken symlinks
Short, consice, and addresses the find -L pitfall as well as cyclical links. +1
Oct
7
comment How can I find broken symlinks
I don't understand why -xtype l works. find . -type l -xtype l means "find all the symlinks to symlinks", rather than, "find all the symlinks to files that don't exist", right?
Oct
2
accepted How can I mount a filesystem, mapping userids?
Oct
1
asked How can I mount a filesystem, mapping userids?
Sep
18
comment How can I get the first match from wildcard expansion?
@Archemar: doesn't work with newlines in filenames.
Sep
18
asked How can I get the first match from wildcard expansion?
Aug
1
comment How do I delete a file in a read-only directory?
It's possible to delete read-only files with rm -f, but not files in read-only directories. I'm just looking for a convenient one-line command, I know why it fails by default.