The ABCs of Unix

Saturday, September 14th, 2019 07:31 pm
flwyd: (daemon tux hexley)
I got the following from the fortune program today, which Edward Gorey fans will appreciate. I hadn't previously known the join command, and there's a good chance I've written a hacky version of it before. I also learned about comm yesterday which has nothing to do with communication but was exactly the tool I needed to print all the lines in file A which don't appear in file B.
A is for awk, which runs like a snail, and
B is for biff, which reads all your mail.
C is for cc, as hackers recall, while
D is for dd, the command that does all.
E is for emacs, which rebinds your keys, and
F is for fsck, which rebuilds your trees.
G is for grep, a clever detective, while
H is for halt, which may seem defective.
I is for indent, which rarely amuses, and
J is for join, which nobody uses.
K is for kill, which makes you the boss, while
L is for lex, which is missing from DOS.
M is for more, from which less was begot, and
N is for nice, which it really is not.
O is for od, which prints out things nice, while
P is for passwd, which reads in strings twice.
Q is for quota, a Berkeley-type fable, and
R is for ranlib, for sorting ar table.
S is for spell, which attempts to belittle, while
T is for true, which does very little.
U is for uniq, which is used after sort, and
V is for vi, which is hard to abort.
W is for whoami, which tells you your name, while
X is, well, X, of dubious fame.
Y is for yes, which makes an impression, and
Z is for zcat, which handles compression.
-- THE ABC'S OF UNIX

1234567890

Thursday, February 12th, 2009 12:06 am
flwyd: (daemon tux hexley)
Synchronize your ntp servers, 'cause 1234567890 is coming!

This Friday at 4:31:30 PM Mountain time, it will be 1234567890 seconds* since midnight on January 1st, 1970 Coordinated Universal Time. That moment marks the Unix epoch, time 0 -- the reference point for a great many computer systems today. This moment on Friday is special because it looks cool to species with a number system based on ten fingers.

Coming as it does at a normal beer-thirty time, I'd like to do something clever at work, particularly because some of our data is saved with a Unix timestamp. Does anyone know of some drinks or snacks thematically appropriate to 1234567890?


* Excluding leap seconds.

!head

Friday, November 10th, 2006 05:28 pm
flwyd: (daemon tux hexley)
In UNIX-land, the head command prints the first several lines of a file (10 by default). I needed to know the layout of a file so I could create a similar one, so I ran
head myfile
and then ran my text editor to create my other file. By the time I needed the information, I'd forgotten what I saw, so I ran the command again:
!head

My inner monologue typically narrates my UNIX activities. In this instance, it said "bang head." It's been that kind of a day.

A Home for Words

Wednesday, November 1st, 2006 12:32 am
flwyd: (escher drawing hands)
Quarter of an hour past midnight. No words written yet, but I've set up my nanowrimo subversion repository. For the non-programmers among you, subversion is a versioning file repository. Make a change to a file, commit it to the repository. Collaborators can then get your changes, make their own, and commit. If you realize you got rid of something and want it back (that was a good paragraph after all...) you can go to any point in history, view the differences, and restore the whole file if you want.

Even if I don't succeed, I'll at least get geek points for keeping a novel in a novel place.
December 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2025

Most Popular Tags

Expand Cut Tags

No cut tags

Subscribe

RSS Atom
Page generated Sunday, January 4th, 2026 09:09 am
Powered by Dreamwidth Studios