3,148 reputation
1530
bio website None
location California, USA
age 54
visits member for 5 years, 5 months
seen 2 days ago
Long-time Informix user and developer, experienced in C and Unix (many variants). Email: jonathan.leffler@gmail.com

Sep
14
comment linux sort -n uniq -c
@squiguy: the file must be sorted before uniq works sanely. The input clearly isn't sorted.
Sep
14
comment linux sort -n uniq -c
@Clustermagnet: UUOC Award? It isn't clear that counts are wanted or needed, so sort -u text.txt? If counts are wanted, then sort text.txt | uniq -c works, optionally followed by sort -n to put the lines into frequency order.
Sep
12
comment Unix weird directory
@ShawnChin: I didn't expect the directory to be there but if the message was 'real' rather than noise, that's where it would be.
Sep
11
comment Unix weird directory
You might want to look for a directory â in the current directory with sub-directory dev containing a file nullâ. Alternatively, it is just the message that is scrambled, and your file really was saved to /dev/null, in which case, it is not going to be possible to get it back (you'll have to FTP it again).
Aug
31
comment How to find files on Linux where only root has read permission
If a file has 0 permissions (or other weird settings like 333), then the owner cannot at the moment read those files (though the owner could change the permission so that they could read those files). Also, if a directory on the path leading to the file is not accessible (the x-bit) to the general world (e.g. the directory is owned by root with 700 permission), then ordinary files under that directory are not readable by others, regardless of who owns them or the permissions on the file. So, there are other possible interpretations for the question, but the selected answer is most plausible.
Aug
25
comment How to kick off multiple shell scripts at startup
Look to the Xsession suggestion by Mr Ramsey.
Aug
25
answered How to kick off multiple shell scripts at startup
Aug
24
revised Does tar preserve links?
Fix trivial typos
Aug
19
awarded  Popular Question
Jul
26
comment Why can't I mount the same filesystem at multiple points, and why can't a mount-point inode reference count be > 1?
Two of about seven — an exaggerated version of many. I prefer that the addendum is a comment (or a separate answer) than a modification of my answer.
Jul
26
revised Why can't I mount the same filesystem at multiple points, and why can't a mount-point inode reference count be > 1?
Remove the as yet unjustified addition to my answer.
Jul
26
comment Why can't I mount the same filesystem at multiple points, and why can't a mount-point inode reference count be > 1?
@Neil Smithline: Please justify your 'many' variants by citing at least one non-Linux variant that provides what you describe: '25 July 2012 Update: Many Unix/Linux variants now support the -o union option that allows two filesystems to share a mount point. The second mount shadows the first in that all file accesses take place first in the new mount and then in the original mount. Also, file creation happens in the new mount.' Wikipedia has a brief outline but little specificity about which o/s other than Plan 9 support them.
Jul
21
awarded  Yearling
Jul
20
awarded  Constituent
Jul
9
awarded  Caucus
Jun
8
awarded  Constituent
Jun
8
awarded  Caucus
May
30
awarded  Nice Answer
May
29
comment What is the reason for rmdir(1) and rm(1) to co-exist?
One major downside of the mknod + link and unlink system was that creating a directory was not an atomic operation, so you could end up with a partially complete directory. There were lots of programs devised to check file systems for the inconsistencies that arose; fsck(1) is the one that survived.
May
29
comment What is the reason for rmdir(1) and rm(1) to co-exist?
Actually, back in the early days of Unix, neither rmdir(2) nor mkdir(2) existed as a system call; user root could use the mknod(2) call to create a directory node and the link(2) call to create the . and .. entries in the directory; and root could use the unlink(2) call to remove the directory entries.