50 likes | 181 Vues
In this exercise, you'll strengthen your command-line skills by learning to display your local IP address with minimal commands in Linux. Using a virtual machine, you'll set up an automatic script that reveals your IP address each time you boot up, ensuring you always have access to this crucial information. You'll get hands-on guidance, and we’ll elaborate on the steps involved. This is a perfect challenge for beginners and enthusiasts alike. Join us, and you might even win a prize for creativity and elegance in your solution!
E N D
Command-line Interface Exercise makes you strong
Command line exercises • Boot up a Linux VM- start now! • Use your portable HDD if available • Else use lab system
If you are already expert ... • Problem: • You need your local IP address often • IP address changes each time you boot up • Challenge: • Display (just) your IP address • As few commands as possible • Auto-execute on start up • Explain it to the class • Prize (works, elegant, explained) • 15 minutes
If that sounds very hard … • Follow along and we will teach you elements of the answer • You should now be looking at a command-line in Linux • See also “Intro to the Command Line” in lab 1.
Exercises • Work from Tour of Linux doc