Windows cmd창에서 Linux 명령어 사용하기 (ls, ll 등)

Woolly·2023년 4월 19일
0
  1. C:\Users\사용자명 하위에 autorun.bat 파일 생성

@ECHO OFF
doskey ls=dir /b $
doskey ll=dir $

doskey cat=type $
doskey ..=cd..
doskey grep=find "$1" $2
doskey mv=ren $

doskey rm=del $*

  1. 레지스트리 편집기 [HKEY_CURRENT_USER\Software\Microsoft\Command Processor]

편집 > 새로 만들기 > 문자열 값

값 이름은 Autorun
값 데이터는 autorun.bat 파일 경로

이후 cmd창에서 ls, ll 명령어 등으로 직접 확인해보기

참고 : https://visu4l.tistory.com/entry/Windows%EC%97%90%EC%84%9C-ls-%EB%AA%85%EB%A0%B9%EC%96%B4-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0

profile
Ad Astra

0개의 댓글