Reputation
4,935
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 11 22
Impact
~258k people reached

Jul
25
comment Properties of cat command
I'd have used "for i; do ... stuff with $i; done" for looping over the arguments rather than while/shift.
Jul
17
comment Simple way to see the content of directories in Linux/UNIX file systems
Linux doesn't allow this... and I think most systems that do return the data in a unified format rather than whatever's actually in the filesystem.
Jul
9
comment Why are UNIX/POSIX system call namings so illegible?
@Petr C functions would have their name prefixed with _, so _creat. He could still have named the function "create", but the extra characters might have been ignored (though IIRC the actual limit on PDP-11 Unix was 8 characters, and 6 comes from some other system).
Jul
7
awarded  Citizen Patrol
Jun
19
comment How is uniq not unique enough that there is also uniq --unique?
@oliver I've occasionally wanted an ability to keep the first instance of any line without rearranging them, and written scripts to do so.
Jun
18
comment How is uniq not unique enough that there is also uniq --unique?
I really wish there was an option to not require sorting. But it would require keeping the whole file in memory (or doing lots of bookkeeping with hashes and offsets if the source is a normal file)
Jun
17
comment Why does the `users` command return different users depending on whether I ssh or open a new terminal?
@rocky The key thing is writing to utmp. Opening a terminal emulator always allocates a tty, but often does not count as a login session for these purposes. Some terminal emulators are configurable to either write or not write it depending on how they're started.
Jun
15
awarded  Enthusiast
Jun
14
answered How can I use setfacl to give no access to “other” users?
Jun
12
comment df -h shows only half the disk space I thought I had?
Or cat /proc/partitions.
Jun
11
comment What's the recommended way of copying changes with vimdiff?
It's important to note that the undo command will only work in the buffer that was changed, so if you use dp and change your mind, you need to switch to the other buffer to undo.
Jun
11
revised Pasting some text with tabs into a here-document in a PuTTY window
add real issue to title
Jun
11
comment Is 'cat' a shell built-in or an external program?
yeah, I couldn't find anything in the Bash manpage about what -b or half the other options mean. Found it later at gnu.org/software/bash/manual/html_node/…
Jun
10
comment Is 'cat' a shell built-in or an external program?
I can't find any formal documentation for these options, do you know where it exists?
Jun
5
awarded  Nice Answer
Jun
4
comment ls -e option not available in linux
%_d isn't portable; %e is a more portable way (of course, it'd only be relevant on this case on platforms with gnu ls but not glibc). The actual time format used by solaris is %b %e %T %Y.
Jun
4
comment Where is zdump getting all these time transitions from?
@BenS It uses them to support the C library's implementation of e.g. tzset and localtime, the same as any other program. But my point was that it does not use the transition table in the file as a guide to what transition times to print; it searches for transition times the hard way, by trying different values with the localtime function.
Jun
4
revised Where is zdump getting all these time transitions from?
added 196 characters in body
Jun
4
answered Where is zdump getting all these time transitions from?
Jun
3
revised ls -e option not available in linux
added 238 characters in body