Reputation
7,247
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
2 21 33
Newest
 Nice Answer
Impact
~674k people reached

Apr
19
comment Run a command that is shadowed by an alias
@cst1992: If you're going to use which (or type), it does a lookup via $PATH; you might as well just use ls or \ls rather than specifying the path.
Apr
7
awarded  Nice Answer
Mar
14
awarded  Self-Learner
Feb
19
comment How to add a newline to the end of a file?
If the file already ends in a newline, this doesn't change it, but it does rewrite it and update its timestamp. That may or may not matter.
Feb
19
comment How to add a newline to the end of a file?
@enzotib: I have (setq require-final-newline 'ask) in my .emacs
Feb
19
comment How to add a newline to the end of a file?
echo "" seems more robust than echo -n '\n'. Or you could use printf '\n'
Feb
19
comment How to add a newline to the end of a file?
@StéphaneChazelas: And tcsh, unlike csh, prints a newline when invoked with no arguments -- regardless of the setting of $echo_style.
Jan
28
awarded  Popular Question
Jan
22
comment Is it safe to strip the binaries in Linux Mint?
Compare the cost of your time to the cost of a bigger hard drive.
Jan
5
comment Is it possible to overwrite a directory with a file in linux
Was the directory called folder1 or Folder1? Is it possible that that's the source of the confusion?
Jan
4
comment How do I change the screen font size when using a virtual console?
I tried this (on Ubuntu 14.04.3 LTS). It just sends a + character.
Dec
27
comment How to conditionally do something if a command succeeded or failed
@vonbrand: Sure, but I don't think it's common to check the return value of vi.
Dec
27
comment Why is it better to use “#!/usr/bin/env NAME” instead of “#!/path/to/NAME” as my shebang?
@Kevin: Just one small point: I've never seen /usr/bin/python be a Python 3 executable; that's generally /usr/bin/python3. (Unless some newer distributions have changed that -- which would break a lot of scripts.)
Dec
27
comment Why is it better to use “#!/usr/bin/env NAME” instead of “#!/path/to/NAME” as my shebang?
@Kevin: Hmm. I'm not much of a Python programmer myself, but I find your statement surprising. I would have thought that most users of Python scripts (not necessarily Python programmers) don't even use Virtualenv. On the other hand, I suppose the #!/usr/bin/env hack would still work for such users -- but it wouldn't have much advantage over #!/usr/bin/python.
Dec
13
accepted Detecting the remaining lifetime of an ssh-agent identity
Dec
11
awarded  Curious
Dec
10
asked Detecting the remaining lifetime of an ssh-agent identity
Dec
7
awarded  Necromancer
Dec
2
comment How to test whether a file uses CRLF or LF without modifying it?
@Scott: Thanks, updated.
Dec
2
revised How to test whether a file uses CRLF or LF without modifying it?
Mention bash's `$'\r'` syntax