vxh.viet
11/30/2017 - 3:46 AM

General Linux command and some common solution for Windows Subsystem for Linux

General Linux command and some common solution for Windows Subsystem for Linux

General Linux command and some common solution for Windows Subsystem for Linux

  • [LINUX] How to put a path with a white space? SOURCE

Use one of these:

SOME_PATH="/mnt/someProject/some path"
SOME_PATH='/mnt/someProject/some path'
SOME_PATH=/mnt/someProject/some\ path
  • [WSL] How to use a program installed in Windows with WSL terminal?

For example, ffmpeg executable is located at C:\Program Files\ffmpeg\bin\ffmpeg.exe. Make sure that the path to this executable exist in Window's system variables:

System Properties > Advanced > Environment Variables... > System variables > Path

Then in the WSL terminal we just need to invoke it with file extension normally, like this:

 ffmpeg.exe -i INPUT.MP4 -c copy -ss 00:00:02 -t 00:00:02 OUTPUT.MP4