달력

4

« 2024/4 »

  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

이제 Ubuntu 12.10 Quantal Quetzal 를 Ubuntu 13.04 Raring Ringtail 로 업그레이드해야 할 시점이 된 듯 하지만, 권고하지는 않는다.  여전히 알파 테스트 버전이다.





1. 첫번째 방법:

$ sudo do-release-upgrade












2. 두번째 방법 :

12.10 에서 13.04로 업그레이드 하는 방법 중 다른 방법으로, 첫번째 방법보다는 어렵다. 즉,  /etc/apt/sources.list 를 다음과 같이 수정하여 업그레이드하는 방법이다.:

$ sudo sed -i 's/quantal/raring/' /etc/apt/sources.list
$ sudo apt-get update && apt-get dist-upgrade







3. 가장 어려운 방법으로  .iso image 를 http://cdimage.ubuntu.com/daily-live/current/, 로 부터 다운로드 받아서 stick 이나 혹은 dvd 에 넣고 설치하는 방법이다.

첫번째 방법을 권하지만 상황에 따라 쉬운 방법을 택하도록 한다.  만약 12.10버전이 없는 새로운 Ubuntu 사용자라면 3번째 방법을 이용해야만 한다.

:
Posted by uno-ani
2009. 3. 10. 23:31

유용한 터미널 명령어 macOS/Tip2009. 3. 10. 23:31





1. Shell Script를 이용하여 터미널 히스토리 제거하는 방법

function cls { 
osascript -e 'tell application "System Events" to keystroke "k" using command down' 
}

#history -c

2. Download History 제거하는 방버

  • 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'


Kill process by searching something from 'ps' command

Terminal - Kill process by searching something from 'ps' command
pkill -f <process name>
2010-06-19 02:36:31
User: eikenberry
Kill process by searching something from 'ps' command

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.

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives
ps ux|grep <process name>|awk '{print $2}'|xargs -n 1 kill
ps h -o pid,command | grep 'TEXT' | sed 's/^ \+//' | cut -d ' ' -f 1 | xargs -n 1 kill

Know a better way?

If you can do better, comment.








:
Posted by Ritz®™