2014-10-30 5 views
-1

Linux 명령을 실행하는 로컬 Windows cmd에 어떤 패키지가 설치되었는지 어떻게 알 수 있습니까? 그것은 내 다른 컴퓨터에 동일한 도구를 설치하려고하고 내가 뭔가를 설치했는지 기억할 수 없기 때문입니다. 당신은 명령 프롬프트에 awk을 실행하여 Windows PATH 변수를 확인할 수 있기 때문에 윈도우에서 유닉스/리눅스 명령을 사용하는 링크 다음의 주어진Windows 명령 프롬프트에서 Linux 명령 실행

C:\>awk 
Usage: awk [POSIX or GNU style options] -f progfile [--] file ... 
Usage: awk [POSIX or GNU style options] [--] 'program' file ... 
POSIX options:   GNU long options: 
     -f progfile    --file=progfile 
     -F fs     --field-separator=fs 
     -v var=val    --assign=var=val 
     -m[fr] val 
     -W compat    --compat 
     -W copyleft    --copyleft 
     -W copyright   --copyright 
     -W dump-variables[=file]  --dump-variables[=file] 
     -W exec=file   --exec=file 
     -W gen-po    --gen-po 
     -W help     --help 
     -W lint[=fatal]   --lint[=fatal] 
     -W lint-old    --lint-old 
     -W non-decimal-data  --non-decimal-data 
     -W profile[=file]  --profile[=file] 
     -W posix    --posix 
     -W re-interval   --re-interval 
     -W source=program-text --source=program-text 
     -W traditional   --traditional 
     -W usage    --usage 
     -W use-lc-numeric  --use-lc-numeric 
     -W version    --version 

To report bugs, see node `Bugs' in `gawk.info', which is 
section `Reporting Problems and Bugs' in the printed version. 

gawk is a pattern scanning and processing language. 
By default it reads standard input and writes standard output. 

Examples: 
     gawk '{ sum += $1 }; END { print sum }' file 
     gawk -F: '{ print $1 }' /etc/passwd 
+0

MinGW를 설치 했습니까? –

+0

@Lord_Gestalter 아니, ghostdog74의 대답을 사용하여 GOW (Windows 용 GNU)를 찾았습니다. – Lordy

답변

0

명령.

echo %PATH%

+0

발견 - GOW (Windows 용 GNU) – Lordy

관련 문제