0
0
Linux CLIscripting~5 mins

ifconfig and ip addr in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the primary purpose of the ifconfig command?
The ifconfig command is used to display or configure network interfaces on a Linux system. It shows IP addresses, network masks, and interface status.
Click to reveal answer
beginner
What does the ip addr command do?
The ip addr command shows detailed information about all network interfaces, including IP addresses, link status, and more. It is a modern replacement for ifconfig.
Click to reveal answer
beginner
How do you display all network interfaces using ifconfig?
Simply type ifconfig without any arguments to list all active network interfaces and their details.
Click to reveal answer
intermediate
How can you show both active and inactive interfaces using ip addr?
Use ip addr show or just ip addr. It lists all interfaces, whether active or inactive, with their IP addresses and status.
Click to reveal answer
intermediate
Why is ip addr preferred over ifconfig in modern Linux systems?
ip addr is part of the newer iproute2 suite. It provides more detailed info, supports more features, and is actively maintained, unlike ifconfig which is deprecated.
Click to reveal answer
Which command shows IP addresses and network interfaces on Linux?
Als
Bifconfig
Ccd
Dmkdir
What is the modern replacement for ifconfig?
Aip addr
Bnetstat
Cping
Dtraceroute
How do you show all network interfaces including inactive ones?
Aip addr show
Bifconfig -a
Cls -l
Dip link down
Which command is deprecated but still commonly used?
Ass
Bip addr
Cifconfig
Dip route
What information does ip addr NOT show?
AIP addresses
BInterface status
CMAC addresses
DRouting table
Explain the differences between ifconfig and ip addr commands.
Think about which command is older and which one is recommended now.
You got /4 concepts.
    Describe how to check all network interfaces and their IP addresses on a Linux system.
    Remember both commands can show interfaces but differ in details.
    You got /3 concepts.