Previous class IDE work

how to check previous IDE work like queries I used to complete the task? Because when I go back and search the bash doesn’t have any record of earlier queries I have performed.

I tried using mongo and the uparrow but there is no record, so I guess you can’t unless you save them locally.