일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- JavaScript
- web.xml
- VirtualBox
- GIT
- Windows
- Windows 10
- import
- IntelliJ
- profile
- 네트워크
- Source
- ssh
- tomcat
- 줄바꿈 문자
- netsh
- maVen
- find
- port
- grep
- context
- lsof
- xargs
- Mac
- plugin
- vscode
- 단축키
- bash
- Quartz
- Eclipse
- resource
- Today
- Total
목록OS & Shell/Mac (38)
develog

파일 내용 출력 (cat) 오름차순 정렬 (sort) 내림차순 정렬 (sort -r) 정렬 결과를 파일로 저장 (sort -o saveFileName)
없는 파일을 rm 으로 삭제시 No such file... $ rm aa.txt rm: aa.txt: No such file or directory No such file... 메시지 안나오게 $ rm aa.txt 2>/dev/null

시스템 환경설정 > 키보드 일반 바탕화면 보기 F11 Dock show/hide command + option + D Page Up fn + ↑ Page Down fn + ↓ Home fn + ← End fn + → 특수 문자 입력 command + ctrl + space 전체 화면 command + ctrl + F 맥 강제 재부팅 command + ctrl + 전원버튼 맥 강제 종료 command + option + ctrl + 전원버튼 Finder 숨긴파일 보기 command + shift + . 검색 창 열기 command + option + space 미리보기 보기/가리기 command + shift + P Mission Control (데스크탑 Space 보기/추가/삭제) Mission Cont..
파일 내용 바꾸기 sed -i '' -e 's/modified://g' file.txt 3번째 라인 삭제 sed -i '' -e '3d' file.txt 앞쪽 trim sed -i '' -e 's/^[[:space:]]*//' file.txt 뒤쪽 trim sed -i '' -e 's/[[:space:]]*$//' file.txt 빈라인 삭제 sed -i '' -e '/^$/d' file.txt

오류 해결 '대한민국'에서 '미국' 으로 변경후 다시 '대한민국'으로 변경