Reputation
4,895
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 11 21
Newest
 Enthusiast
Impact
~247k people reached

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
Jun
3
comment What does -ar flag mean for cp?
@Nomadme see unix.stackexchange.com/questions/18712/… - tl;dr: you should only use -R, not -r, because -r has non-portable (and often undesired) semantics for symbolic links and special files. But they're not different on Linux.
Jun
2
revised What are some common use cases for creating block/character device files from the shell with mknod?
added 105 characters in body
Jun
1
revised What are some common use cases for creating block/character device files from the shell with mknod?
added 73 characters in body
Jun
1
answered What are some common use cases for creating block/character device files from the shell with mknod?