1,810 reputation
618
bio website
location Vancouver, Canada
age
visits member for 2 years, 6 months
seen 15 hours ago

Moderator pro tem for http://codereview.stackexchange.com


Oct
22
comment Is there a fastest way to shutdown the system?
What's the fastest way to kill a server? on Server Fault
Oct
22
comment Is there a fastest way to shutdown the system?
Is this question Linux-specific? Please tag accordingly.
Sep
26
comment When was the shellshock (CVE-2014-6271/7169) bug introduced, and what is the patch that fully fixes it?
May I askā€¦ did you stumble upon the bug serendipitously, or were you actively looking for bugs in Bash?
Aug
7
comment How to undo `set -x`?
In Bash, type help set.
Jul
12
comment What is the source of help?
Further evidence: strings /bin/bash | grep 'Change the current directory to DIR'
May
27
comment Difference between command `ls 2 >tmp >tmp` and command `ls > tmp`
ls >2 >tmp1 >tmp1 doesn't appear to be a valid command.
May
27
comment Difference between command `ls 2 >tmp >tmp` and command `ls > tmp`
You seem to be asking two separate questions here.
May
19
comment Converting Linux into a Router- Traffic from eth0:0 to eth0
I think you may be running a rogue DHCP server on eth0, and that could cause problems.
Apr
21
comment How to find out a process gets end?
Why do people answer questions in comments instead of writing answers?
Apr
11
comment Why isn't there any shell command to create files?
An illustration of the Unix tendency to generalize is the fact that the command to display the contents of a file is called cat. Why have a command to display one file, when you could make one command to concatenate multiple files to standard output?
Apr
5
comment Tell fs to free space from deleted files NOW
Superfluous use of cat to truncate. In Bourne shell, just > /proc/3446/fd/128 will do.
Jan
10
comment Why I can't escape spaces on a bash script?
Furthermore, if you double-quote everything consistently, you don't need the backslash before the space.
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
@HåkonHægland Amended, thanks!
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
Please clarify the question by posting what your desired output should look like.
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
I interpret the task be replacing empty fields (i.e. consecutive tabs or a tab at the end of the line) with 0.
Dec
22
comment How to add zero (0) in blanks in a big file (example file is below)
I don't see how this solution should work at all. It just indiscriminately replaces tabs with zeros.
Dec
3
comment How to download all the e-mail messages from POP3 server to a single text file with mailx?
IMAP does support multiple folders. Use fetchmail --folder Sent (or fetchmail INBOX.Sent with some IMAP servers' folder layout).
Dec
2
comment How to download all the e-mail messages from POP3 server to a single text file with mailx?
POP3 has no concept of any folder other than Inbox. Your Sent and Deleted folders probably reside locally on the client.
Nov
26
comment How can I determine a file's conventional filename extension
grep | awk can usually be done using awk alone.
Nov
8
comment How can I find out where the firefox bin is?
While locate exists on OS X, the locatedb database is not built by default. Instead, users would probably prefer mdfind, since Spotlight indexing is enabled out-of-the-box.