Home

Cui · Hongguang

Recent Entries · Archive · Friends · User Info

* * *
State, Country, Government, People
* * *
终于可以来了!小小庆祝吧!
* * *
$ tar [-cxtzjvfpPN] 文件与目录 ....
参数:
-c :建立一个压缩文件的参数指令(create 的意思);
-x :解开一个压缩文件的参数指令!
-t :查看 tarfile 里面的文件!
特别注意,在参数的下达中, c/x/t 仅能存在一个!不可同时存在!
因为不可能同时压缩与解压缩。
-z :是否同时具有 gzip 的属性?亦即是否需要用 gzip 压缩?
-j :是否同时具有 bzip2 的属性?亦即是否需要用 bzip2 压缩?
-v :压缩的过程中显示文件!这个常用,但不建议用在背景执行过程!
-f :使用档名,请留意,在 f 之后要立即接档名喔!不要再加参数!
   例如使用『 tar -zcvfP tfile sfile』就是错误的写法,要写成
   『 tar -zcvPf tfile sfile』才对喔!
-p :使用原文件的原来属性(属性不会依据使用者而变)
-P :可以使用绝对路径来压缩!
-N :比后面接的日期(yyyy/mm/dd)还要新的才会被打包进新建的文件中!
--exclude FILE:在压缩的过程中,不要将 FILE 打包!
范例:
范例一:将整个 /etc 目录下的文件全部打包成为 /tmp/etc.tar
$ tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩!
$ tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gzip 压缩
$ tar -jcvf /tmp/etc.tar.bz2 /etc <==打包后,以 bzip2 压缩
# 特别注意,在参数 f 之后的文件档名是自己取的,我们习惯上都用 .tar 来作为辨识。
# 如果加 z 参数,则以 .tar.gz 或 .tgz 来代表 gzip 压缩过的 tar file ~
# 如果加 j 参数,则以 .tar.bz2 来作为附档名啊~
# 上述指令在执行的时候,会显示一个警告讯息:
# 『tar: Removing leading `/' from member names』那是关於绝对路径的特殊设定。
范例二:查阅上述 /tmp/etc.tar.gz 文件内有哪些文件?
$ tar -ztvf /tmp/etc.tar.gz
# 由於我们使用 gzip 压缩,所以要查阅该 tar file 内的文件时,
# 就得要加上 z 这个参数了!这很重要的!

范例三:将 /tmp/etc.tar.gz 文件解压缩在 /usr/local/src 底下
$ cd /usr/local/src
$ tar -zxvf /tmp/etc.tar.gz
# 在预设的情况下,我们可以将压缩档在任何地方解开的!以这个范例来说,
# 我先将工作目录变换到 /usr/local/src 底下,并且解开 /tmp/etc.tar.gz ,
# 则解开的目录会在 /usr/local/src/etc 呢!另外,如果您进入 /usr/local/src/etc
# 则会发现,该目录下的文件属性与 /etc/ 可能会有所不同喔!

范例四:在 /tmp 底下,我只想要将 /tmp/etc.tar.gz 内的 etc/passwd 解开而已
$ cd /tmp
$ tar -zxvf /tmp/etc.tar.gz etc/passwd
# 我可以透过 tar -ztvf 来查阅 tarfile 内的文件名称,如果单只要一个文件,
# 就可以透过这个方式来下达!注意到! etc.tar.gz 内的根目录 / 是被拿掉了!

范例五:将 /etc/ 内的所有文件备份下来,并且保存其权限!
$ tar -zxvpf /tmp/etc.tar.gz /etc
# 这个 -p 的属性是很重要的,尤其是当您要保留原本文件的属性时!

范例六:在 /home 当中,比 2005/06/01 新的文件才备份
$ tar -N '2005/06/01' -zcvf home.tar.gz /home

范例七:我要备份 /home, /etc ,但不要 /home/dmtsai
$ tar --exclude /home/dmtsai -zcvf myfile.tar.gz /home/* /etc

范例八:将 /etc/ 打包后直接解开在 /tmp 底下,而不产生文件!
$ cd /tmp
$ tar -cvf - /etc | tar -xvf -
# 这个动作有点像是 cp -r /etc /tmp 啦~依旧是有其有用途的!
# 要注意的地方在於输出档变成 - 而输入档也变成 - ,又有一个 | 存在~
# 这分别代表 standard output, standard input 与管线命令啦!
# 这部分我们会在 Bash shell 时,再次提到这个指令跟大家再解释啰!

* * *
1. get the sample of near infrared absorption material
2. get 3D model page
^_^
* * *
个自诩为大国的gov,做事像bitch一样!
昨天这里不用tor还可以上,那昨天就是说这里是符合这个gov的利益的。
那么,今天,不用tor就无法上这里,那就是说今天这里侵犯了这个gov的利益啦?
做事像bitch!
* * *
Gaussian program is important in electron behavior since it got Nobel Prize in 1998. With computer technology development, people can study organism in molecular level. Crystal structure, the lowest energy structure, is only static state, while can't explain the dynamic process in life catalysis. So Gaussian provides us a method.
There is the internal coordinate in gaussian input file, is differ from crystal data. How to convert crystal data to gaussian internal coordinate?
Python or C?
Tags:
* * *
Software offers interactive, visual simulations that have been widely used to teach and learn science and engineering. As a free, open-source and extensible modeling platform, it provides not only a powerful environment for creating interactive molecular models and performing dynamical simulations, but also an easy-to-use authoring tool for building user interfaces and writing guided activities. In addition, it is equipped with an embedded assessment system for measuring student’s learning with models and simulations. All these functionalities are seamlessly integrated under a simple user interface, which makes the sum of many difficult tasks orders of magnitude easier than they used to be for educators.
http://www.apple.com/downloads/macosx/math_science/molecularworkbench.html
* * *
A high performance software server designed specifically for logs and IT data. The Splunk Server indexes IT data from ANY source. No need to configure it for specific formats, write regular expressions or change your logging format. Search mountains of data by time, keywords, type of event, source, host, or relationships to other events. Index thousands of sources and terabytes of data — as it happens
http://www.apple.com/downloads/macosx/networking_security/splunk.html
Tags:
* * *
A tool to edit text-based subtitles.
http://www.apple.com/downloads/macosx/unix_open_source/jubler.html
It can be used as an authoring software for new subtitles or as a tool to convert, transform, correct and refine existing subtitles. The most popular subtitle formats can be used. Preview of the subtitles in real-time or in design time, spell checking, translation mode, and styles editing are some of the main features.

It is open source under a liberal (GNU) public licence. It is written in Java 6 in order to be really multi-platform. It has been tested under Linux, Windows XP, and Mac OS X.

What’s New in this Version
- Automatic detection of MPlayer/ASpell executables.
- Preview window GUI updates.
- Alt-mousewheel / alt-click slows down rotation in JTimeSpinner boxes.
- Support for Spruce DVDMaestro (STL) and MPL2 subtitles (without formatting).
- Added missing tooltips.
- Many more enhancements.

Tags:

* * *
Google fans are pleased with MacOSX!
gSync can securely synchronise Apple iCal calendars with Google Calendars. Very Good!
http://www.apple.com/downloads/macosx/productivity_tools/gsync.html

http://images.apple.com/downloads/macosx/productivity_tools/images/gsync_20070807114629.jpg

Tags:

* * *
Why?
It is victory of the freedom, isn't it?
* * *
MacOSX系统下也可以查看中国股市行情了!

窗体不可调整大小 :-( 下面字体太小了!小到无法正常看清楚。
Tags:
* * *

请看地址栏,然后看页面。网通真厉害!
刚开始还以为同网段有人做DNS捣乱呢,后来在本地的论坛上看到同样的东西,而且还是经常性的偶尔!
* * *
* * *
果终端中也可以使用irssi - irc客户端软件。
使用Macports方式安装,简单方便:sudo port install irssi。
/set autolog_path ~/.irssi/irclogs/$tag.$0.%Y.%m.%d 记录日志
/set nick xxx
/set real_name xxx
/set beep_msg_level MSGS NOTICES DCC DCCMSGS HILIGHT
/save
/connect irc.freenode.net
我的终端设置成了黑底白字,默认的theme里的[]和<>符号却是暗灰色,在这个背景下根本看不见。开始修改默认的主题配置文件 ~/.irssi/default.theme
找到replaces = { "[]=" = "%K$*%n"; }; 将K改为w(白色)
找到msgnick = "%K<%n$0$1-%K>%n %|"; 将K改为w
Tags:
* * *
&#36825;个东西有些功能对firefox支持的还不是很好。不过还是有进步的,最起码现在使用的是浏览器定义的字体了!
就是好奇的看看,没准备用!:-)
* * *
个公司真是SB,一点也不为用户考虑。
在Win2k系统装了这个SB公司的2006 beta版的那个JB软件后,居然user组的用户无法使用,非得power user或是更高级别的组用户才能正常登陆。这是什么强盗逻辑?
难道调用了系统的什么很贵重的东西了吗?
这个让我想起依托北京某个大学的国内某公司出的一款扫描仪,也是极其SB加BT,在Win系统下装好驱动后,只能是administrator组的用户使用,别的组的用户根本无法使用。难道这种硬件的调用只能是administrator吗?*nix下也是这样吗?
无语!
* * *
&#20170;天是每年一度的理工大学组织的招聘会,凭学生证入场。给我的印象是主要针对本科生的。试着谈了几个学校,都不敢当场和我签。
从交谈中,很明显的体现了现在的浮华的学风和民风。学生犹如待宰羔羊,基本和白菜一个价了!
唉!教育啊!教育!
* * *
&#29238;亲也是快60的人了,一直是沉默少语的。
前些日子同宿舍的哥们毕业,于是把他的电脑淘给了父亲。经过几天接触,父亲对电脑产生了浓厚的兴趣。
昨天去他那里,给他申请了一个gmail 和 google blog,现在正在尝试使用。昨晚简单和父亲谈了几句,父亲交给我个任务,要我给他找些数控机床和汽车电器的资料,还让我给他找个画机械图的工具(当然是autoCAD了)。忽然想起父亲是铆工出身,年轻的时候曾经独自一人制造了一个龙门吊车
现在特别佩服父亲,以他这个年龄及平时所接触的事物,现在居然能想到学习数控机床和汽车电器!
* * *
firefox自带了搜索栏(地址栏右侧,我设置成google了),google toolbar也有搜索栏,看着两个搜索栏(有这个必要吗?)别扭,装上这个扩展后又给禁用了。
不过很喜欢google toolbar里的屏幕取词翻译,只是调用的时候太慢。能否把它的词库down到本地调用呢?
Tags:
* * *

Previous

Advertisement