ip확인

반응형

MAC 에서 자주 사용하는 것들

Home brew

  • 설치
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 삭제
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
  • 명령어
brew list : 설치한 패키지 검색
brew update : brew를 최신버전으로 업데이트
brew search <패키지명> : 프로그램이 있는지 검색
brew install <패키지명>[@버전] : 프로그램 설치(최신버전으로)
 ex) brew install mysql, brew install mysql@5.5
brew info <패키지명> : 패키지 정보보기
brew outdated : 업그레이드 필요한 프로그램 찾기
brew upgrade <패키지명> : 패키지 업그레이드
brew upgrade : 모드 패키지 업그레이드
brew cleanup <패키지명> : 여러 ver 설치시 최신버전 이외의 버전들 전부 삭제
brew uninstall <패키지명> : 특정 패키지 삭제
brew install --cask <패키지명> : 맥용 GUI 프로그램 설치 사용
 ex) brew install --cask tomcat@8

환경 변수 설정

vi ~./bash_profile    // 수정

export M2_HOME=/usr/local/Cellar/maven/3.8.1/libexec
export M2=$M2_HOME/bin
export PATH=$PATH:$M2_HOME/bin

export GRADLE_HOME=/usr/local/Cellar/gradle/5.6.4/libexec
export GRADLE=$GRADLE_HOME/bin 

source ~/.bash_profile  //즉시 적용 

Host 설정

sudo nano /private/etc/hosts  //저장 Ctrl + X -> Y -> enter

실행중인 포트 확인

lsof -i :8080 | grep LISTEN

zsh 테마 적용

source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

finder 경로, 입력 프롬프트

  • 상단 경로 path
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder
  • 하단 path

​ finder > 보기 > 경로 막대 가리기 체크 해제

  • Direct path 이동

​ ⌘⇧g(command + shift + g)

  • 숨긴 파일 표시

​ ⌘⇧. (command + shfit + . )

IP 확인

ipconfig getifaddr en0
반응형

'Etc > Etc' 카테고리의 다른 글

코드 리뷰-지속 가능한 SW 개발(feat.백명석)  (0) 2022.05.11

+ Recent posts

반응형