I am working with IRAF 2.16.1 on a Fedora linux system (Fedora 26 at this time). Many people use IRAF on MacOS systems. I don't know anything about that, but there are tutorials out there that talk about this (once you get IRAF running, it doesn't much matter).
cd; mkdir iraf; cd iraf mkiraf clYou get a prompt "vocl", where "vo" stands for virtual observatory. This is kind of an odd quirk, but doesn't really matter. Alternately you can type "ecl", which gives you a cl without the vo features.
Running mkiraf gives you a uparm directory, along with a login.cl file. If you like, you can create a loginuser.cl file and put your own customizations in it that are applied each time you start the cl.
What you probably want to do after you do the one time mkiraf thing is:
#ds9 & ximtool & xgterm & cl (but do this in the xgterm)Note that I have the line to start ds9 commented out at this point. IRAF display does not know how to talk to it out of the box, and ximtool just works, so this will do for now.
The CL has a history mechanism. Type "e" to get the history editor and use the arrow keys. Trial and error are your friend.
display dev$pixNote that if you search around and find a FITS image, which are all the rage these days, you will have to master the multi image fits syntax and use a command like this.
display myfile.fits[0]
xgterm _X11TransSocketINETConnect: Can't get address for localhost xgterm Xt error: Can't open display: localhost:10.0I don't know of a workaround -- use VNC.