Reputation
21,934
Next tag badge:
326/400 score
94/80 answers
Badges
2 26 79
Newest
 Custodian
Impact
~1.8m people reached

  • 0 posts edited
  • 6 helpful flags
  • 2,017 votes cast
May
14
comment How to make my server use the hosts file to resolve names?
I use dnsmasq for almost exactly this situation. I found that dnsmasq configuration wasn't particularly easy, so maybe you should pick this as THE answer, then try to get dnsmasq to do what you want, asking questions about dnsmasq instead.
May
12
awarded  Good Answer
May
12
awarded  Nice Answer
May
12
awarded  files
May
11
awarded  Nice Answer
May
11
answered Does bash open files in O_APPEND when using “>>” on linux?
May
7
comment Are files defined by their content blocks, inodes, both, or filenames?
@Tim - yes, all special files have inodes. That's how ls can show you /dev/sda1 or /tmp/.X11-unix/X0. If you do man 2 stat you can see the st_mode field of struct stat, and the C-language macros to decide what files types. An inode (on-disk data) example is in /usr/include/ext2fs/ext2_fs.h on my machine. struct ext2_inode has an i_mode member that has a particular bit set for each of the special file types.
May
7
comment Are files defined by their content blocks, inodes, both, or filenames?
@Tim - the not-regular-files don't really have data blocks. Maybe named pipes do, but the not-regular-files all need the kernel to do a lot more on each read or write. Unix-domain sockets need to have a user process on the other end. Device files reference a whole disk, or a disk partition. You can think of them as either "all of the data blocks" or "don't really have data blocks". It doesn't really make sense to think of "data blocks" in the context of not-regular-files.
May
6
revised Clustering identical files ignoring spaces & linebreaks
deleted 19 characters in body
May
6
answered Are files defined by their content blocks, inodes, both, or filenames?
May
6
answered Clustering identical files ignoring spaces & linebreaks
May
5
revised Memory layout of dynamic loaded/linked library
Add a paragrph about cat /proc/$$/maps to see more libraries loaded into memory.
May
4
answered Memory layout of dynamic loaded/linked library
May
1
answered Io redirection vs file logging performance c/c++
May
1
revised Fork vs Clone on 2.6 Kernel Linux
Emphasize that the real clone() system call is different from the man-page-clone()
May
1
comment Fully MS-compatible office
If you really need "Office" and it's limitations I mean features, you should just run Windows and buy Office. It's honestly not worth asking for complete compatibility with software as complex and as unspecified as Word and Excel and Powerpoint.
May
1
revised Understand “ibase” and “obase” in case of conversions with bc?
Remove pomposity. It's a difficult topic in english, Deal with it.
Apr
30
comment Fork vs Clone on 2.6 Kernel Linux
@Celada - yes, agreed. It's just that man 2 clone phrases it exactly that way, which I thought was confusing the issue, and preventing the questioner from getting a good answer.
Apr
30
comment How to avoid executing a command if a process doesn't exist
You should avoid that ps | grep expdp | grep -v grep usage: unix.stackexchange.com/questions/3340/… There's a race condition in that pipeline that will sometimes cause it to act as if expdp process is not running. It's an ugly, ugly race, and it doesn't occur very often. Usually after working hours.
Apr
30
answered Fork vs Clone on 2.6 Kernel Linux