Ubuntu: Pasted commands do not appear in history



Question:

when I use copy and paste to run a command, and later I want to run the command again it doesn't appear in history.

Sometimes if I paste and then change some of the arguments the command does appear in the history.

How can I make sure that all the commands that I run appear in history?


Solution:1

If you paste a command with a leading space, they do not appear in history. Such a thing can easily happen if you copy and paste commands (eg. from websites or documents)


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »