List and run last used commands in Linux

To list through most recently used commands one by one use Arrow-Up key

To display all used commands:
history

To run a command from the history list:
!391
where 391 command number

Ubuntu Grub - Change Default OS

If you install Ubuntu as a second Operating System alongside Windows, every time computer boots you will be presented with a Grub boot menu where you can make a choose which OS to boot. If you don't make any choice in 10 seconds your default OS will boot. Obviously after installing Ubuntu it will become the default Operating System.
You may want to change your default OS or reduce Grub timeout. Probably easiest way to achieve this is to install StartUp-Manager.
  1. Open Terminal and run sudo apt-get install startupmanager and wait until installation is completed.
    Open Terminal and run sudo apt-get install startupmanager
  2. Open Dash Home, type "Startup" in the search box and open StartUp-Manager
    Open Dash Home, type "Startup" in the search box and open StartUp-Manager
  3. In StartUp-Manager select your Default OS and reduce reduce timeout if required. Click Close to save changes
    StartUp-Manager



Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait