본문 바로가기

terminal5

Mac OS X 맥어드레스 변경하는 방법 밖에서 작업할 때 맥 어드레스 변경이 필요할 때가 종종 있다. Termial 명령어를 이용하면 쉽게 맥의 맥 어드레스를 변경할 수 있다. sudo ifconfig en0 ether AA:AA:AA:BB:BB:11 en0 는 wifi에 해당되는 설정 이름이고 간혹 ethernet이 달린 (LAN 선 연결 가능한) 맥에는 en0이 ethnet이고 en1이 WIFI에 해당되는 경우가 있으니 ifconfig 명령어를 통해 확인하면 된다. ! 재부팅을 하면 맥 어드레스는 원래대로 돌아온다. Automator나 Shell을 이용하여 간단한 script를 만들면 쉽고 유용하게 사용할 수 있다. See also. 터미널 명령어를 이용해 WIFI 를 컨트롤 하는 방법 2015. 10. 31.
Terminal로 맥 소프트웨어 업데이트 방법 Terminal 명령어로 아래와 같이 입력하면 소프트웨어 업데이트를 진행할 수 있다. sudo softwareupdate -l 그럼 아래와 같이 해당 항목이 보일 것이고 -d 옵션을 주면 다운로드만 진행할 것이고 (* 부분의 이름을 큰 따옴표(" ") 로 묶으면 된다) sudo software update -d "OS X El Capitan Update Public Beta-10.11.2" -i 옵션을 주면 설치를 곧바로 진행할 것이다. sudo software update -i "OS X El Capitan Update Public Beta-10.11.2" 다 필요 없고 모든 업데이트를 자동으로 설치하고 싶으면 -i 옵션에 all 을 붙여주면 된다. sudo software update -i all 2015. 10. 31.
터미널 명령어를 이용해 WIFI 를 컨트롤 하는 방법 오늘은 터미널 명령어로 WIFI 접속하는 방법을 알아보려고 합니다. 그리고 자동으로 스타벅스 와이파이 설정하는 방법까지 응용하는 방법도 안내해 드리려고 합니다. • 아래와 같이 WIFI를 끄고 켤 수 있습니다. 첫 명령어 실행때에는 계정 암호를 입력해야 합니다. sudo ifconfig en0 down sudo ifconfig en0 up • airtport 명령어를 이용하여 주변의 와이파이를 검색해 보겠습니다. System 디렉터리 아래 깊숙한 곳에 숨겨져 있습니다. -s 옵션이 바로 와이파이를 검색하라는 명령어 입니다. /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -s olleh_starbucks.. 2015. 10. 8.
xargs vs. exec {} This is where -exec breaks down and xargs shows its superiority. When you use -exec to do the work you run a separate instance of the called program for each element of input. So if find comes up with 10,000 results, you run exec 10,000 times. With xargs, you build up the input into bundles and run them through the command as few times as possible, which is often just once. When dealing with hun.. 2015. 9. 5.