47Chapter 2Running Commands from the ShellCommand-Line RecallAfter you (Windows 2003 server web)
Wednesday, April 25th, 200747Chapter 2Running Commands from the ShellCommand-Line RecallAfter you type a command line, that entire command line is saved in your shell shistory list. The list is stored in a history file, from which any command can berecalled to run again. After it is recalled, you can modify the command line, asdescribed earlier. To view your history list, use the historycommand. Type the command withoutoptions or followed by a number to list that many of the most recent commands. For example: $ history 8382 date383 ls /usr/bin | sort -a | more384 man sort385 cd /usr/local/bin386 man more387 useradd -m /home/chris -u 101 chris388 passwd chris389 history 8A number precedes each command line in the list. There are several ways to run acommand immediately from this list, including: .!n Run command number. Replace the nwith the number of the commandline, and that line is run. For example, here s how to repeat the datecommandshown as command number 382 in the preceding history listing: $ !382dateThu May 13 21:30:06 PDT 2004 .!! Run previous command. Runs the previous command line. Here s howyou d immediately run that same datecommand: $ !! dateThu May 13 21:30:39 PDT 2004 .!?string? Run command containing string. This runs the most recentcommand that contains a particular stringof characters. For example, you canrun the datecommand again by just searching for part of that command lineas follows: $ !?dat? dateWed Oct 13 21:32:41 PDT 200407_
Note: If you are looking for cheap and reliable webhost to host and run your web application check Vision coldfusion web hosting services