I'm reading a book, Learning Unix for OS X by Dave Taylor. It says:
To quickly see all of the binary executables—Unix programs—on your system,
Open the Terminal, hold down the
Shiftkey, and pressEsc-?, or pressControl-Xfollowed byShift-1(usingShift-1to get an exclamation mark).Before the commands are displayed in the Terminal, however, you’ll first be prompted (asked) to make a choice:
$ Display all 1453 possibilities? (y or n)If you press the
nkey on your keyboard, you’ll be taken back to a command prompt and nothing else will happen. However, if you press theykey, you’ll see a multi-column list of Unix commands stream past in the Terminal window.
However, the problem is, when I hold down Shift key and press Esc-? nothing happens. Same for Pressing Control-X followed by Shift-1. What am I doing wrong? Is there any setting that I need to enable before using this feature? I'm using iTerm2 on Mac El Capitan. It doesn't work on the stock terminal either. Any help would be much appreciated. Thank you.



<TAB>twice. Result should be the same.!. Just press theTabtwice. You can also type whatever you want, then press theTabtwice and it'll print only commands starting with what you typed.Tabtwice is doing nothing on my terminal. It only prints 4 spaces. However, typing some letter and pressingTabtwice does print commands starting with that letter, that's nice. Thank a lot.zshdoesn't seem to do it; neither does mybashhere, but it did likeC-x !.)