# ipconfig
bash: ipconfig: command not found
If you are trying to find out your private or public IP on Linux or Unix-Like Operating Systems and you get "ipconfig: command not found", well the reason for this error, is that there is no ipconfig command for Linux, instead you need to make use of the ifconfig command.
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 65535
inet 1xx.17.0.2 netmask 255.255.0.0 broadcast 1xx.17.255.255
ether 02:42:ac:11:00:02 txqueuelen 0 (Ethernet)
RX packets 5434 bytes 83686640 (83.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3076 bytes 229403 (229.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# ifconfig
bash: ifconfig: command not found
If you even get the same error of ifconfig then the required binary is missing, and you need to install net-tools using the apt package manager.
# sudo apt-get install net-tools
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to Linux,
- Command to know the Available Memory on Linux System
- How to install curl on Alpine Linux
- How to backup a file in Linux/Unix
- Install Java Runtime Environment (Oracle or open JRE) on Ubuntu
- What is the Default Admin user and Password for Jenkins
- How to tar.gz a directory or folder Command
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- Fix: bash: ipconfig: command not found on Linux
- Command to check Last Login or Reboot History of Users and TTYs
- Linux: Create a New User and Password and Login Example
- ls command to list only directories
- bash: cls: command not found
- How to exit from nano command
- Installing and using unzip Command to unzip a zip file using Terminal
- What does apt-get update command does?
- ls command: sort files by name alphabetically A-Z or Z-A [Linux/Unix/macOS/Bash]
- How to remove or uninstall Java from Ubuntu using apt-get
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- Sort ls command by last modified date and time
- Create Nested Directories using mkdir Command
- How to Exit a File in Terminal (Bash/Zsh)
- Command to know the installed Debian version?
- How to connect to SSH port other than default 22
- How to save a file in Nano Editor and Exit
- Install OpenSSL on Linux/Ubuntu
More Posts:
- What are E, K, N, S, T, U, V in Java Generics - Java
- How to uninstall Microsoft Edge from Mac (macOS) - MacOS
- INVALID FILE NAME: MUST CONTAIN ONLY [a-z0-9_.] Android Eclipse Error - Eclipse
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015 - HowTos
- Fix Xcode: Git Repository Creation Failed - Git
- How to go to the End of File in Nano Editor - Linux
- How to make TextEdit the default text Editor on Mac - MacOS
- ls command to list only directories - Linux