유용한 터미널 명령어 macOS/Tip2009. 3. 10. 23:31
1. Shell Script를 이용하여 터미널 히스토리 제거하는 방법
function cls {
osascript -e 'tell application "System Events" to keystroke "k" using command down'
}
Terminal:
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'
database and dump the results.:
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | sort
Deleting the Download History List
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'
Using -f treats the process name as a pattern so you don't have to include the full path in the command. Thus 'pkill -f firefox' works, even with iceweasel. There are 3 alternatives - vote for the best! If you can do better, comment.Kill process by searching something from 'ps' command
Alternatives
Know a better way?
'macOS > Tip' 카테고리의 다른 글
HDD 복구 방법 - Invalid BS_impBoot (10) | 2012.11.21 |
---|---|
맥 파티션에 디스크 공간이 부족하여 부팅이 안될때 조치방법 (0) | 2012.11.17 |
FaceTime 과 iMessages 가 안될 때 (0) | 2012.11.09 |
Apple ID 일관성 있게 유지하는 방법 (0) | 2012.10.08 |
Yontoo or Topic Torch Removal for Mac & Safari User’s (0) | 2009.02.14 |