I want to use Windows' start command in bash on Ubuntu on Windows (i.e., WSL).
However, I couldn't use it by simply typing start:
nek@NEK:/mnt/c/Users/Nek$ start test.txt
Command 'start' is available in '/sbin/start'
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.
start: command not found
And I noticed that start.exe might not exist.
C:\Users\Nek>where start
INFO: Could not find files for the given pattern(s).
Is start a builtin command? Can we use start in bash?
Environment
- Windows 10 build 14393.693 (Update: This version is old for executing
.exefiles on bash. I should update Windows build >= 14951, and then follow the answer.) - Bash on Ubuntu on Windows (bash 4.3.11(1)-release x86_64-pc-linux-gnu, Ubuntu 14.04)
Related Links
- "How can I “open” a file from WSL with the default application?" -- superuser
- "Interop between Windows and Bash" -- Windows Command Line Tools For Developers
cmdis not found on bash. Am I missing something? (Currently, I doubt whether build version is old.) – nekketsuuu Feb 24 '17 at 12:25.exeTry usingcmd.exe ...or specify the full path/mnt/c/Windows/system32/cmd.exe .... Answer updated. – DavidPostill Feb 24 '17 at 12:28.exethat is important.bashdoesn't know how to execute files if you don't add.exeto the command name. – DavidPostill Feb 24 '17 at 12:35/mnt/c/Windows/system32/cmd.exe ...caused a bash errorNo such file or directory, and/mnt/c/Windows/System32/cmd.exe ...causedcannot execute binary file: Exec format error. So I'll update Windows Insider Build and try again. Anyway, Thank you for your answer! – nekketsuuu Feb 24 '17 at 12:54alias open='cmd.exe /c start ""'to my.bashrc. – dimo414 May 26 '17 at 04:06UNC paths are not supported. Defaulting to Windows directory.and sure enough the File Explorer opens up withC:\Windows. PowerShell'sStart-Processsupports UNC paths. – ADTC Jun 17 '21 at 17:33