Re: [Dorset] ed, vi et al

2019-07-05 Thread Ralph Corderoy
Hi Tim, > I sometimes think the same about the default tty signal mapping of > Ctrl-\ for SIGQUIT -- the two keys appear next to either other on this > keyboard, so is easy for e.g. a cat to type (or even a mis-typed > Ctrl-Z undo attempt). I typed this TTY's QUIT character on Wednesday by

Re: [Dorset] Links from 2019-07-02's Pub Meet.

2019-07-05 Thread Ralph Corderoy
Hi Tim, > Incidentally, a pair of floppy disk drives with PSU, interface card > and CP/M cost around £800 in 1983 - £2288 today according to > https://www.inflationtool.com/british-pound That's using CPI, which I always think of as a con by our Government to help hide that successive post-war

Re: [Dorset] Very slow Desktop startup problem

2019-07-05 Thread Ralph Corderoy
Hi Clive, > Should the swap show a mount point and if so where?  (/?) No, a mount point is a directory where the filesystem's root directory appears, e.g. /home is a common one. Whilst it's mounted, the contents of the original /home directory are inaccessible as accesses pass across to the

Re: [Dorset] Very slow Desktop startup problem

2019-07-05 Thread Victor Churchill
:) Now to me, it's more logical to tinker with the file descriptors of the command first and then say where they are going rather than vice versa. On a related note I recall early *nixes where the command switches had to precede all the other arguments. Took me years to get used to the fact that

Re: [Dorset] ed, vi et al

2019-07-05 Thread Tim Waugh
On Fri, 5 Jul 2019 at 08:07, Ralph Corderoy wrote: > Here's me entering Ctrl-1, Ctrl-2, ... up to Ctrl-0 and then Enter. > > $ stty raw; \ > > ((timeout --foreground 4.2 dd bs=1; stty cooked; echo >&3) | hd) 3>&1 > 1^@^[^\^]^^^_^?9^M > 31 00 1b 1c 1d 1e 1f 7f 39 0d >

Re: [Dorset] Very slow Desktop startup problem

2019-07-05 Thread Patrick Wigmore
On Fri, 5 Jul 2019 at 08:44, Ralph Corderoy wrote: > (yada yada) |& curl -sSF 'f:1=<-' ix.io On Fri, 05 Jul 2019 11:42:22 +0100, Victor Churchill wrote: > I was puzzled to see the '&' in your command above. I'd have thought that > saying > (yada yada) | curl -sSF 'f:1=<-' ix.io > would do the

Re: [Dorset] Discovering unfamiliar utilities

2019-07-05 Thread Ralph Corderoy
Hi Patrick, > but what method did you use to produce the list of files, excluding > common operating system libraries? I expect Bob used ldd(1) and then removed common ones by hand, knowing what they were likely to be. For a one-off quick task, automating it would be more tedious. set

[Dorset] Distributed, Fault-tolerant, Filesystems.

2019-07-05 Thread Ralph Corderoy
Hi Tim W., > Yes, thinking around the problem of wanting to seamlessly use more > storage than is available locally on e.g. a laptop, backed by network > storage (perhaps a local file server, perhaps as a cache for cloud > storage). > > https://ceph.com/ceph-storage/

Re: [Dorset] Discovering unfamiliar utilities

2019-07-05 Thread John Carlyle-Clarke
You reminded me that a few days ago I listed the files in a core package on a server (looking for a missing utility) and saw a few things in the list that I didn't immediately recognise. I thought at the time, "That would be a good way to learn about utilities that I don't know exist". The

Re: [Dorset] Discovering unfamiliar utilities

2019-07-05 Thread Patrick Wigmore
On Fri, 05 Jul 2019 13:33:21 +0100, Ralph Corderoy wrote: > For a one-off quick task, automating it would be more tedious. But you did it anyway, even though you didn't need the results! (Don't change, your code snippets are great.) > I learnt by reading books. Pre-Internet. The authors back

Re: [Dorset] Discovering unfamiliar utilities

2019-07-05 Thread Bob Dunlop
On Fri, Jul 05 at 12:14, Patrick Wigmore wrote: > On Thu, 04 Jul 2019 10:37:35 +0100, Bob Dunlop wrote: > > nvi > >textdata bss dec hex filename > > 270612048 256 2936572b5 /usr/bin/nvi > > 442019 18688 144 460851 70833 /usr/lib64/libvi.so.0 > >

Re: [Dorset] ed, vi et al

2019-07-05 Thread Bob Dunlop
Hi, On Thu, Jul 04 at 03:15, Ralph Corderoy wrote: > Hi Bob, > > > On reason you had ed on early machines and Vi on later can be seen by > > examining the code size of even modern builds. > > Right, given the small amount of RAM on early machines, ed fitted where > bigger programs couldn't.

Re: [Dorset] Very slow Desktop startup problem

2019-07-05 Thread Victor Churchill
Thanks Ralph and Patrick. > it [ |& ] is shorthand for 2>&1 ...bash also adds ‘&>foo’ meaning ‘>foo 2>&1’. Likewise ‘&>>’. Well we live and learn. I'm going to add this to my catalogue of scenarios where I have developed a muscle-memory for doing things an 'old' way, and then a new and usually

Re: [Dorset] Very slow Desktop startup problem

2019-07-05 Thread Victor Churchill
Hi Ralph, Neat trick with ix.io; I hadn't met that before. A pastebin for one-liners! I was puzzled to see the '&' in your command above. I'd have thought that saying (yada yada) | curl -sSF 'f:1=<-' ix.io would do the trick, and that adding the ampersand would, if anything, cause it to break:

[Dorset] Discovering unfamiliar utilities

2019-07-05 Thread Patrick Wigmore
On Thu, 04 Jul 2019 10:37:35 +0100, Bob Dunlop wrote: > nvi >textdata bss dec hex filename > 270612048 256 2936572b5 /usr/bin/nvi > 442019 18688 144 460851 70833 /usr/lib64/libvi.so.0 > 430302 176282552 450482 6dfb2 /lib64/libncursesw.so.6

Re: [Dorset] Very slow Desktop startup problem

2019-07-05 Thread Ralph Corderoy
Hi Victor, > Saying 'do_something_interesting 2>&1 > something_interesting.log' Or, the alternative action of ‘foo >bar 2>&1’. :-) -- Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-08-06 20:00 Check to whom you are replying Meetings, mailing list, IRC, ...

Re: [Dorset] Very slow Desktop startup problem

2019-07-05 Thread Ralph Corderoy
Hi Victor, Hope life's treating you well since you moved ‘abroad’. Patrick wrote: > > > (yada yada) |& curl -sSF 'f:1=<-' ix.io > > > > I was puzzled to see the '&' in your command above. Patrick's answered that ‘|&’ is a bash shorthand for ‘2>&1 |’. > > I'd have thought that saying > >

Re: [Dorset] Discovering unfamiliar utilities

2019-07-05 Thread Patrick Wigmore
On Fri, 05 Jul 2019 12:14:03 +0100, Patrick Wigmore wrote: > the short description of size(1) does not make any mention of object > files: > > $ man -f size > size (1) - list section sizes and total size. On Fri, 05 Jul 2019 13:33:21 +0100, Ralph Corderoy wrote: > This is a