1.在命令结尾放个&如
#/home/start.sh &
2.nohup
#nohup /home/start &
前一种只对守护进程长期有效,即使关掉终端也不会停掉,后一种使所有进程都长期后台执行
2009年1月7日星期三
Linux之cat
作用:把文件或屏幕内容输出到一个文档
1. cat file1 > file2 输出文件1到文件2
2. cat file1 file2 >> file3 把俩文件连起来输出到第三个
3. cat > file1, 然后在屏幕上输入,按ctrl+c结束
4. cat /dev/null > file1, 清空file1
参数:
-n 或 --number 由 1 开始对所有输出的行数编号
-b 或 --number-nonblank 和 -n 相似,只不过对于空白行不编号
-s 或 --squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行
-v 或 --show-nonprinting
1. cat file1 > file2 输出文件1到文件2
2. cat file1 file2 >> file3 把俩文件连起来输出到第三个
3. cat > file1, 然后在屏幕上输入,按ctrl+c结束
4. cat /dev/null > file1, 清空file1
参数:
-n 或 --number 由 1 开始对所有输出的行数编号
-b 或 --number-nonblank 和 -n 相似,只不过对于空白行不编号
-s 或 --squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行
-v 或 --show-nonprinting
2009年1月5日星期一
2009年1月4日星期日
Sofware之Jarnal
打草稿软件,可以给PDF做批注
link: http://www.dklevine.com/general/software/tc1000/jarnal.htm
在linux下有类似的xournal
link: http://xournal.sourceforge.net/
link: http://www.dklevine.com/general/software/tc1000/jarnal.htm
在linux下有类似的xournal
link: http://xournal.sourceforge.net/
DB2之Instance管理
1.创建
db2icrt instance_name //windows
db2icrt -u fanced_user instance_name //linux or unix
User-defined functions and stored procedures, by default, are created in fenced mode so that these processes run in a different address space than the DB2 engine
2.删除
db2idrop -f instance_name
3.查看
db2ilist //list
4.Migration
db2imigr instance_name //从32位migrate到64位
5.Update
db2iupdt instance_name //打了fix pack就需要update
db2icrt instance_name //windows
db2icrt -u fanced_user instance_name //linux or unix
User-defined functions and stored procedures, by default, are created in fenced mode so that these processes run in a different address space than the DB2 engine
2.删除
db2idrop -f instance_name
3.查看
db2ilist //list
4.Migration
db2imigr instance_name //从32位migrate到64位
5.Update
db2iupdt instance_name //打了fix pack就需要update
2009年1月3日星期六
订阅:
博文 (Atom)