0
0
Linux CLIscripting~15 mins

ifconfig and ip addr in Linux CLI - Mini Project: Build & Apply

Choose your learning style9 modes available
Using ifconfig and ip addr to View Network Interfaces
📖 Scenario: You are working as a system administrator and need to check the network interfaces on a Linux machine. You want to learn how to use two common commands, ifconfig and ip addr, to see details about the network interfaces.
🎯 Goal: Learn how to run ifconfig and ip addr commands to display network interface information and understand their outputs.
📋 What You'll Learn
Use the ifconfig command to list network interfaces
Use the ip addr command to list network interfaces
Understand the difference in output format between ifconfig and ip addr
Display the output of both commands clearly
💡 Why This Matters
🌍 Real World
System administrators often need to check network interfaces to troubleshoot connectivity or configure network settings.
💼 Career
Knowing how to use <code>ifconfig</code> and <code>ip addr</code> is essential for Linux system administration and network management roles.
Progress0 / 4 steps
1
Run the ifconfig command
Type the command ifconfig exactly to list all network interfaces and their details.
Linux CLI
Need a hint?

The ifconfig command shows network interfaces and their IP addresses.

2
Run the ip addr command
Type the command ip addr exactly to list all network interfaces and their details in a different format.
Linux CLI
Need a hint?

The ip addr command is a modern alternative to ifconfig and shows more detailed info.

3
Compare the outputs of ifconfig and ip addr
Use the commands ifconfig and ip addr together to see both outputs and observe the differences.
Linux CLI
Need a hint?

Use && to run ifconfig and then ip addr in one line.

4
Display the output of both commands clearly
Print the outputs of ifconfig and ip addr commands separately using echo statements to label them.
Linux CLI
Need a hint?

Use echo to print labels before each command output.