Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

ipconfig not working on windows 10 bash shell; what other commands are missing.

I had this question after viewing i can not do linux commands in cygwin windows 10.


Are you aware of Windows 10's new "Subsystem for Linux (beta)" feature? Open the Control panel, select "Programs and Features", click on "Turn Windows Features on or off", and then you should be able to select it as one of the features. In Settings, Updates, you should also enable "Developer mode".

Once that is done reboot, and then open a CMD prompt and enter "bash". Answer the Question you get with "Y" (Yes), and an Ubuntu version gets downloaded and installed. More details are shown under the Link below:

https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

This works a lot better than Cygwin.






I watched video on installation page.
I type
ipconfig


joe@LAPTOP-4TEGFAKE:/mnt/c/Windows$ ipconfig
No command 'ipconfig' found, did you mean:
 Command 'iwconfig' from package 'wireless-tools' (main)
 Command 'tpconfig' from package 'tpconfig' (universe)
 Command 'ifconfig' from package 'net-tools' (main)
ipconfig: command not found
joe@LAPTOP-4TEGFAKE:/mnt/c/Windows$ ifconfig
Command 'ifconfig' is available in '/sbin/ifconfig'
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
ifconfig: command not found
SOLUTION
Avatar of Juan Ocasio
Juan Ocasio
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

/sbin/ifconfig


do i need to be in sbin folder to run any commands
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

Every command in $PATH can be executed. When not in $PATH you have to specify the full path in this case /sbin/ifconfig
do I need to add words to my windows path using control panel


and sudo su works
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

Thanks.

I will look into path