linuxshell

Users questions: The final implementation of the 15 commands stored in
Experts answer: file1 answer: history * tail-n15 file1 pipeline used here (*) concept, the output of a command on a command as the next input; also use a redirect ( ), the output Stored in the file. history to find out the history command, pass tail,-n15 that read 15 lines (tail originally from the last reading), they were able to get the last 15 commands executed. Of course, this, file1 in command, and command history number, if not Want to number, you should be removed only with sed command only (not numbered).
  • This information provided by the users.Thanks!