rgb192
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
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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Every command in $PATH can be executed. When not in $PATH you have to specify the full path in this case /sbin/ifconfigdo I need to add words to my windows path using control panel
and sudo su works
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
I will look into path
I will look into path
ASKER
do i need to be in sbin folder to run any commands