Frank Han's work sheet

Friday, September 27, 2013

Kill 命令

kill -signal PID  

signal的常用参数如下(注:最前面的数字为信号的代号,使用时可以用代号代替相应的信号): 

  • 1:SIGHUP,启动被终止的进程 
  • 2:SIGINT,相当于输入ctrl+c,中断一个程序的进行 
  • 9:SIGKILL,强制中断一个进程的进行 
  • 15:SIGTERM,以正常的结束进程方式来终止进程 
  • 17:SIGSTOP,相当于输入ctrl+z,暂停一个进程的进行 

Friday, August 17, 2012

Two new ls command learned today.


#2: lsblk

Use this command to list block devices
# lsblk 
Sample outputs:
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    1  68.3G  0 disk
├─sda1   8:1    1   716M  0 part /boot
├─sda2   8:2    1     8G  0 part [SWAP]
└─sda3   8:3    1  59.6G  0 part /
sr0     11:0    1  1024M  0 rom
To see file system type:
# lsblk -f
Sample outputs:
NAME   FSTYPE LABEL MOUNTPOINT
sda
├─sda1 ext2         /boot
├─sda2 swap         [SWAP]
└─sda3 ext4         /
sr0
To output info about permissions:
# lsblk -m
Sample outputs:
NAME     SIZE OWNER GROUP MODE
sda     68.3G root  disk  brw-rw----
├─sda1   716M root  disk  brw-rw----
├─sda2     8G root  disk  brw-rw----
└─sda3  59.6G root  disk  brw-rw----
sr0     1024M root  cdrom brw-rw----

#3: lsb_release

Use this command to see Linux distribution-specific information, enter:
# lsb_release
# lsb_release -a

Sample outputs:
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final

Tuesday, May 22, 2012

Outlook tasks customized view

I am trying to generate my weekly report, which basically should covers all HPC projects both ongoing and completed within 7 days.

Since I am using the task feature in outlook 2012, I digs a little bit more:

Right click in the content field, and then view settings->filter->SQL:

Put those content in the box, after enable "Edit these criteria directly...."

(%last7days("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/810f0040")% or "http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811c000b" = 0)

Of course, I want to show more details instead of only one subject line. So still right click in empty content field->AutoPreview layout.

Done.

Refer to : Change the appearance of tasks - Outlook - Office.com

Tuesday, March 6, 2012

Friday, January 20, 2012

How to deploy SilverLight using Group Policy (GP) - Articles

How to deploy SilverLight using Group Policy (GP) - Articles: A friend have asked me to help him installing Silverlight to a set of computers , after serching the net and MS site we come across the Silverlight Deployment Guide.doc and Silverlight Deployment Guide v2.docx also I come across this blog post , I found these documents hard to implement so , I figured out a new method hope it will help you in your silverlight deployment.

Silverlight file comes in .exe file format which can’t be deployed using Group Policy Software installation Policy� to over come this problem a few steps need to be done: