Reputation
5,000
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 11 22
Impact
~271k people reached

Aug
20
comment How to create files named 'a to z' - any trick?
I do wonder about the logic that led bash, at least, to restrict it to letters, but allow ranges to span between upper and lower case including []^_`.
Aug
15
comment Why and how are some shared libraries runnable, as though they are executables?
@Ho1 ld.so is special in other ways. To some extent, it's more of a real executable than a normal dynamically-linked executable is.
Aug
9
comment How can I exclude all “permission denied” messages from “find” in Solaris
@hewei If you must use csh, the (somewhat, if you want it in a file you need to put the file instead of /dev/tty) equivalent command is (find . -prune > /dev/tty) >& /dev/null.
Aug
9
comment How can I exclude all “permission denied” messages from “find” in Solaris
@hewei Use ksh instead of csh for your shell.
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.