인텔리제이에서 Git commit 할 때 CRLF 관련 오류가 뜰 때
인텔리제이에서 commit 할 때 아래와 같이 CRF 관련 오류가 뜰 때가 있다.
You are about to commit CRLF line separators to the Git repository
해당 오류는 커밋하려는 코드 내 에 CRLF 개행이 있다는 뜻으로 windows에서 코드 작업을 할 때 발생한다. windows는 CRLF를 쓰지만 mac이나 리눅스는 LF만 쓰기 때문에 추후 커밋할 경우 코드 자체엔 문제가 없는데 엉뚱하게 오류를 발생시킬 수 있다.
그럴 경우 프로젝트 디렉토리에서 아래 커맨드를 입력하면 해결된다.
git config --global core.eol lf
git config --global core.autocrlf input
Spring Boot에서 profile 별 실행 방법
아래와 같이 profile 명을 지정하여 jar 를 실행하면 된다.
Dspring.profiles.active={프로파일 명}
systemCtl 목록 확인
아래와 같이 입력하면 전체 목록 확인 가능
systemctl list-units
ls -al 명령어에 대한 이해
ls-al 명령어를 입력하면 아래와 같은 목록이 출력된다. 각각의 뜻은 아래와 같다.
# 예시
-rw-r--r-- 1 user_a root 947 3 8 09:22 live_item.yml
# 쪼갤 경우 / 아래 설명 참조
{-}{rw-}{r--}{r--} {1} {user_a} {root} {947} {3 8 09:22} {live_item.yml}
{-} → 파일(-), 디렉토리(d), 블록 디바이스(b), 문자(c), 링크(l)
{rw-} → read(r), write(w),execute(x)
{1} → 연결된 링크의 개수
{user_a} → 소유자
{root} → 그룹
{947} → 파일 크기
{3 8 09:22} → 3월 8일 09시 22분
{live_item.yml} → 파일명
참고 문서
https://m.blog.naver.com/writer0713/222057278210
https://www.lesstif.com/gitbook/git-crlf-20776404.html
https://hhyemi.github.io/2020/10/06/10061148.html
https://www.lesstif.com/system-admin/systemd-system-daemon-systemctl-24445064.html
https://www.ibm.com/docs/ko/aix/7.2?topic=l-ls-command

댓글 영역