Reputation
25,985
Next tag badge:
96/100 score
19/20 answers
Badges
3 39 88
Impact
~2.8m people reached

May
1
comment How to know the depth of a path?
Using sizeof shell_prompt for the size of the buffer is incorrect. sizeof shell_prompt is 4 or 8, depending, but the number you want to use is sizeof(char *) * 256, what you passed to malloc(), whose address you stored in shell_prompt. There's a difference between the sizeof a pointer, and the sizeof the buffer that gets pointed to.
May
1
comment Why does `find . -type f` take longer than `find .`?
My first guess was that the -type f option caused find to call stat() or fstat() or whatever in order to find out if the file name corresponded to a file, a directory, a symlink, etc etc. I did an strace on a find . and a find . -type f and the trace was almost identical, differing only in the write() calls that had directory names in them. So, I don't know, but I want to know the answer.
May
1
comment set variable inside heredoc and use them outside
@AsafMagen - then why have the evaluation of ls -l /tmp | wc -l inside a "here document"? Just evaluate it and be done.
May
1
answered set variable inside heredoc and use them outside
Apr
30
comment wpa_supplicant problems
the wpa_supplicant output looks maybe like it associated with the access point, but disconnects after some time. I thought that if dhcpcd wasn't running, then wpa_supplicant just times out and disconnects.
Apr
30
comment wpa_supplicant problems
Do you have dhcpcd running for that interface?
Apr
21
awarded  Notable Question
Apr
16
answered How to tell if a command executed by `exec` runs successfully or not?
Apr
13
answered Xming for Linux? (Aka run a display/x11 server inside a window)
Apr
8
answered How to know the path of a running executable?
Apr
7
revised What core kernel-level IPC mechanisms exist in Linux?
Add note about SysV IPC shared memory and mmap() with MAP_SHARED.
Apr
7
comment What File System for a slow drive?
@SamuelePilleri - I don't know about Reiser4, but the original ReiserFS was pretty good. I used it for some years on about 4 machines with no bad experiences. I personally never got killed, but your mileage may vary.
Apr
7
awarded  Good Answer
Apr
7
answered What File System for a slow drive?
Apr
6
answered What core kernel-level IPC mechanisms exist in Linux?
Apr
5
comment Why does “head /bin/ls” reset the terminal
stty sane is at least somewhat more portable, and might do a more complete job of resetting everything.
Apr
5
comment what can cause a socket() “Permission denied” error?
I don't get an error under Arch linux on an x68_64 laptop. I suspect this is an Android thing.
Mar
30
answered Why does Linux not allow `cat`ing a directory?
Mar
28
comment Ethernet intermittently fails to come up
It might be a failing ethernet card. I've seen much the same thing on an elderly PC - ethernet would occasionally not come up, or come up in half-duplex or in some configuration even stranger. The symptoms got worse with age over a few months.
Mar
24
comment Where can I find a dictionary file of common words?
@l0b0 - Good point. I misread your question when I answered it. My own biases led me to believe that you were looking for a list of "stop words", words to avoid as "too common".