# Resources for completing Linux labs

This course features hands-on lab activities where you’ll have the opportunity to practice Linux commands in the terminal. You’ll use a platform called Qwiklabs to complete these labs. In this reading, you’ll learn how to use Qwiklabs.

This reading first provides a section on how to use Qwiklabs, which includes details on how to launch a lab, how to interact within the Qwiklabs environment, and how to end a lab. This is followed by another section on helpful navigation tips and keyboard shortcuts; these may be useful when working in the terminal.

**Note**: You will not launch Qwiklabs directly from this reading and instead will do this through lab activities and exemplars that you encounter throughout the course. Im not posting the Qwiklabs, this is just how to use Qwiklabs, and if you use Qwiklabs thats on you.

## How to use Qwiklabs

### **Launching Qwiklabs**

When you select a lab, you start from a Coursera page. You will need to click **Launch App** on that page. After you click **Launch App**, a new tab will open with a Qwiklabs page that contains instructions for that particular lab.

### **Start Lab button**

On the Qwiklabs page, you must click **Start Lab** to open a temporary terminal. The instructions for the lab will move to the right side of the screen.

<div class="rc-CML" dir="auto" id="bkmrk-"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer"><div><figure contenteditable="false" role="figure">![Green button with text “Start Lab” and a maximum time limit of 20 minutes displayed.](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/bbLYK8KXTheEmp-pArlF-g_ef7afc94b9304f30844a19e45e922ff1_wPU2KdBxIZhEA0euFsDlhs_nHve2ceZ69LNUPx4ZE0Bb8jVXhx-Qq2dfRIK1a8IFwZ08_GkPEgh4NR_8yvGYvn0U4FTm6l8QGhpbBlTwXew2thU31_64Ivi7nwPKJNCtemriZhtJWAfZdc0dQ-tTfEo?expiry=1688688000000&hmac=Xs_PR-pKuEqZUuDwbTvXOG4xEqxiu8fZfNRcFei0SYc)</figure></div></div></div></div></div></div>Read the instructions and complete all the tasks in the lab by entering commands in the terminal.

**Note**: It may take a moment for the terminal to start.

### **Lab control dialog box**

After you click **Start Lab**, the lab control dialog box opens. It contains the **End Lab** button, the **timer**, and the **Open Linux Console** button.

You can hide or unhide the dialog box by clicking the following icon in the red box:

<div class="rc-CML" dir="auto" id="bkmrk--1"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer"><div><figure contenteditable="false" role="figure">![Four rectangles spiraling next to each other to comprise one square surrounded by a red box in a screenshot of the lab.](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/9J3KUOFWRNWzekD6Uiykyg_f489a579c31c4a8b8c2f9b68467495f1_LuMypehj-sqYyJlYCJGk-0LPWQirKP_cVeCYhsw1ism9amvqsYDhZEdh-Wyzh1tW__cut8UToAifaNs6LRj3iXCr4ujUo_RA7h-qx4rJVs1CRjAwAwCGM-gnKcx4wIWeV2b9IqCRB14qOVyda1LeQDA?expiry=1688688000000&hmac=sUwVJcuIGXiK6OC-T6cB8nckcTeHRtnugLt3Wh56lAI)</figure></div></div></div></div></div></div>### **The timer**

The **timer** starts when the terminal has loaded. The timer keeps track of the amount of time you have left to complete a lab. The timer counts down until it reaches 00:00:00. When it does, your temporary terminal and resources are deleted.

You will have ample time to complete the labs. But, stay focused on completing the tasks to ensure you use your time well.

### **Open Linux Console button**

When you click the button to **Open Linux Console**, the terminal opens in a new browser window:

<div class="rc-CML" dir="auto" id="bkmrk--2"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer"><div><figure contenteditable="false" role="figure">![A red square around a button with text “Open Linux Console”.](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/GL_lszqoS_SwMddGbzYgEQ_1bd87af68f5f46a0be668b190f51f6f1_tEIGaT6dW10ie3BjpmzvFivoi8feEG9-Iw7O_lAjvdvWpFXlZOm8HmiNc2c9OgRKvKUBjJhp8HfoR3qu9JPY4GzGbCSOvh_nC-pKywu_G0B7V_ULMpjKTT06CYfx4b7oS1HPZnudcST_D-LjQmdIwmY?expiry=1688688000000&hmac=vwiCV0cQqzvmvDv9YdaDCvAWu2lfLxRHEr1NoC1gp4Y)</figure></div></div></div></div></div></div>Use this feature if you want a full-screen view of the terminal. You can close this window at any time. Closing the window does not end your lab, and you can continue working in the terminal in the original tab.

### **Check progress**

You can check your progress by clicking **Check my progress** at the end of each task.

<div class="rc-CML" dir="auto" id="bkmrk--3"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer"><div><figure contenteditable="false" role="figure">![Blue button with text “Check my progress” below a sample task.](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/IbOfFeajT2q9yZWHyXxHOA_e8b0749220334c5aa3ac5f0aa7070ef1_kN58Isr_cUeyITXiw1gAqBQeWHP4UIaMnQbwyVY6sRQre_L0gtmYjALeqKvApc1L8XchdZeLsfUaNwA9aQZL0Kir1h0c8BJjGsKWq8mfHEmrS0pVNBb4h5c-3hJ-__kbwaa0LN5U8CbJBLlqWToABF0?expiry=1688688000000&hmac=z0DH9eRfFA4-sNQbkhRuP2m3aJnXx6AtSwQHrTRBNgs)</figure></div></div></div></div></div></div>If you haven’t yet completed a task, you’ll receive hints on what you must do to complete it.

You can click **Check my progress** whenever you want to check the completion status of a task or receive a hint.

### **Using copy/paste commands**

The first time you try to use copy or paste keyboard shortcuts (such as **CTRL + C**), you’ll receive a pop-up requesting permission to use your device’s clipboard: “**googlecoursera.qwiklabs.com wants to see text and images copied to the clipboard.**” Please click **Allow** if you would like to be able to use these shortcuts in the Qwiklabs platform. If you choose not to allow Qwiklabs access to your clipboard, you cannot use keyboard shortcuts but you can still complete the lab.

### **Code block**

Certain steps may include a code block. Click the copy button to copy the code provided and then paste it into the terminal.

<div class="rc-CML" dir="auto" id="bkmrk--4"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer"><div><figure contenteditable="false" role="figure">![Two layered rectangles surrounded by a red box on the right side of a sample code block to indicate copy.](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/tSaH4Zd2T9qHv2ALlr1fGA_a4c26fdc722a4b3c8f38f12e15c863f1_OhCX3BSN-yf0Nd8lnjLLk4t5hUVBbpR913lAp_yIdqsaOEgDIiV-p9N2nflw4o4ED_Fwxsg6Dez7gopRSYphMueEEoblkkIBY3ELnRDiqKhC6ZILGCJH1NSugmPxU2Y50M2sGk98kdv--GwRMchPRJU?expiry=1688688000000&hmac=BbUXv1jOAecIBgkFxB-BNnArWB5Mh4cP64x510LU_bc)</figure></div></div></div></div></div></div>To paste code or other text content that you have copied from the instructions into the terminal, activate the terminal by clicking anywhere inside it. The terminal is active when the cursor in the terminal changes from a static empty outline to a flashing solid block.

<div class="rc-CML" dir="auto" id="bkmrk--5"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer"><div><figure contenteditable="false" role="figure">![A dollar sign prompt and white rectangle cursor surrounded by a red box in the terminal.](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/cgjBaqtES0ayrgvTCk3QZQ_25005fa6300f4d1ba01ef6a768097ef1_NCn3RU6ab8eSTxYYo2V1zh5y2ehRWaP-OavQGkZpJgxI-K-JeeIL5QSJCMqQqMQ-09eapv_GCAub7jZG6zmqX3VZ3Vx59qV_qXdJVo4LUqGW2kQz36DXIGk17rzkSmMmPvVRlrMp3nfeoC9dbYjk98Q?expiry=1688688000000&hmac=fzzGgVZjDG9kHsL4nqHgUnecySZzEBUaJTrxqO_hR0g)</figure></div></div></div></div></div></div>Once the terminal is active, use the keyboard shortcut **CTRL + V** (hold down the **CTRL** key and press the **V** key) to insert the copied text into the terminal at the location of the flashing cursor.

### **Scrolling**

In certain situations, you may want to scroll within the terminal window. To do so, use the scroll wheel on your mouse or the touchpad of your computer.

### **End Lab button**

<div class="rc-CML" dir="auto" id="bkmrk--6"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer"><div><figure contenteditable="false" role="figure">![A red button with text “End Lab” surrounded by a red box.](https://d3c33hcgiwev3.cloudfront.net/imageAssetProxy.v1/dN9wPgYMQl2fBxFAffoZjw_38694553980f42cd94d8906a1f2d1bf1_Mfw27huMPvdOZI21TbioE29m49cakKuRkC3cEtNpIUkdnVMw7P8r1N9ETGXSSloVpG_zhsBqeA4uj7RTVMTFLChkhBUdF4yYkeIfa5Y42X6AWHf7HrQqiBm9sPcDBpY2pxdpvQVQRQSvbQbmCS43wY8?expiry=1688688000000&hmac=CNDm4LP82u_528axrzmV1g9S7A6blmUT64A0P6CbPX8)</figure></div></div></div></div></div></div>Finally, click **End Lab** when you’ve completed the tasks in the lab.

**Note**: Don't click **End Lab** until you're finished; you'll lose access to the work you've done throughout the lab.

### **Tracking progress on Coursera**

If you complete a lab but your progress hasn’t been tracked on Coursera, you may need to refresh the page for your progress to be registered. Once you complete the lab and refresh the page, the green check mark should appear.

## Helpful navigation tips and keyboard shortcuts

The following contains a list of navigation tips and keyboard shortcuts you may find useful when completing your Linux labs. Your cursor must be in the terminal window to use these navigation tips and keyboard shortcuts.

<div class="rc-CML" dir="auto" id="bkmrk-ctrl-%2B-c%3A-terminates"><div><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml" data-track-page="item_layout" role="presentation"><div data-track="true" data-track-action="click" data-track-app="open_course_home" data-track-component="cml_link" data-track-page="item_layout"><div class="css-1k5v0wb" data-testid="cml-viewer">- <var>CTRL + C</var>: Terminates a command that is currently running; from the instructions portion of Qwiklabs, you can use <var>CTRL + C</var> to copy, but within the terminal, it will only terminate a command and if one isn't running, it will display <var>^C</var> at the prompt
- <var>CTRL + V</var>: Pastes text
- <var>clear</var>: Clears the terminal screen; this can also be done by entering <var>CTRL + L</var>
- <var>CTRL + A</var>: Sets your cursor at the beginning of a command
- <var>CTRL + E</var>: Sets your cursor at the end of a command
- <var>Left arrow</var> **key**: Moves left within a command
- <var>Right arrow</var> **key**: Moves right within a command
- <var>Up arrow</var> **key**: Provides the last command you entered into the command line; can be entered multiple times to go through multiple commands from the command history
- <var>Down arrow</var> **key**: Provides the next command in the command history; must be after using the <var>up arrow</var> key
- <var>Tab</var> **key**: Provides available suggestions for completing your text

</div></div></div></div></div>## Key takeaways

Knowing how to navigate Qwiklabs will be useful as you complete the labs throughout this course. These labs can help you practice what you’ve learned in an interactive environment.