How can I record commands only to a file?I imagine something like the script command, but not recording prompts or the OS response, just the entered commands followed by a line feed.I want to record a series of frequently used commands so I can put them in a shell script.
Record commands only to file
shell script