On Tue, 2017-03-28 at 12:20 -0700, stan wrote:
> On Tue, 28 Mar 2017 19:56:48 +0100
> Patrick O'Callaghan <pocallag...@gmail.com> wrote:
> 
> > I can only say I have no recollection of typing that, and that I did
> > want to create a snapshot as a test. But it was a few days ago so I
> > may be wrong.
> 
> If you use bash, and have bash history enabled, at a command line you
> could type a CTRL-R and then type qemu to search back through history
> for commands with qemu in them that you've run.  Each time you hit
> CTRL-R it will look back one more time.
> 
> Or, you can just do
> less ~/.bash_history, type G to go to the bottom, and look for qemu
> using ?qemu.

Or use grep on .bash_history directly. However this still doesn't show
any instance of "qemu-img create -b ...". What it does show is:

$ grep "sudo qemu-img * create" .bash_history        
$ grep "sudo qemu-img * snapshot" .bash_history  
sudo qemu-img snapshot -c test win10
sudo qemu-img snapshot -c test Windows10.qcow2  
sudo qemu-img snapshot -l Windows10.qcow2  
sudo qemu-img snapshot -l
sudo qemu-img snapshot -l win10
sudo qemu-img snapshot -l Win10
sudo qemu-img snapshot -l Windows10.qcow2  
sudo qemu-img snapshot -l test
sudo qemu-img snapshot -l test
sudo qemu-img snapshot -l win10.qcow2
sudo qemu-img snapshot -l /home/poc/Win10/win10.qcow2
sudo qemu-img snapshot info /home/poc/Win10/win10.qcow2
sudo qemu-img snapshot info win10.qcow2  
sudo qemu-img snapshot info /var/lib/libvirt/images/Windows10.qcow2
sudo qemu-img snapshot -a /home/poc/Win10/win10.qcow2 win10.qcow2  
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 
/home/poc/Win10/win10.qcow2
sudo qemu-img snapshot -a /home/poc/Win10/win10.qcow2 
/var/lib/libvirt/images/Windows10.qcow2
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 win10.qcow2  
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 
/home/poc/Win10/win10.qcow2  
sudo qemu-img snapshot -a /home/poc/Win10/win10.qcow2 
/var/lib/libvirt/images/Windows10.qcow2
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 
/home/poc/Win10/win10.qcow2  
sudo qemu-img snapshot -l /var/lib/libvirt/images/Windows10.qcow2

I'm afraid this is more confusing than it needs to be because I was
basically in "try anything" mode, but as you can see I did create a
snapshot labelled 'test' (and the '-l' option listed it), but did not
delete it nor use 'create -b' at any point.

Anyway, I don't expect anyone to try and decipher the above.

Thanks.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to