直接telnet 25端口发邮件
直接telnet 25端口发邮件[@more@] 直接telnet 25端口发邮件 :)可以自己写个程序发邮件咯。用jmail控件也行。 下次说telnet上收邮件,可以做邮件到达提醒。:)偶们的oa里用得到哦。 使用以下命令启动 TELNET 会话: Telnet xxx.xxx.xxx.xxx 25 如果正常,您将会看到以下来自 IMC 的响应: 220 site.company.com Microsoft Exchange Internet Mail Connector 4.0.xxx.xx 其中,xxx.xx 对 RTM 是 837.3,对 SP1 是 838.14。 键入以下命令开始进行通讯: HELO test.company.com 您
Linux/Unix下查看WWN號碼的方法
Linux/Unix下查看WWN號碼的方法[@more@] 转载:Linux/Unix下查看WWN號碼的方法 網上雖然可以搜得到很多查看WWN號碼的方法,但由於小弟的機器比較特別,安裝的不是QLogic的HBA卡,而是 Emulex,OS是 Redhat 5.3 ,所以查到的大部分方法均不適用! 後後終於找到了適合自己的方法: [root@erp-db proc]# more /sys/class/fc_host/host*/port_name ::::::::::::::/sys/class/fc_host/host3/port_n
linux图形化界面和命令界面切换的快捷键
在图形化界面按下ctrl+alt+f[1-6] 切换到命令行; 在命令行按下alt+f7 进入图形界面。[@more@]
.Z 文件的解压缩
#/home/oracle> mv openssh-4.1p1_51.tar.z openssh-4.1p1_51.tar.Z #/home/oracle> uncompress openssh-4.1p1_51.tar.Z #/home/oracle> ls.bash_history bkup2 exp.leotab9.1013 import.sh.profile bkup3 exp.ts_labdata1.1013 openssh-4.1p1_51.tar.sh_history exp.1009 exp.ts_labdata3.1013 smit.logbkup exp.annytab8.1013 explog.leo.1013 smit.scriptbkup1 exp.annytab9.1013 expl
Windows For 学习 (.bat)
for /f "skip=7 tokens=4" %a in ('dir f:test') do @if exist %a @echo %a[@more@]用批处理实现的删除特定时间以前的文件发布:dxy 字体:[增加 减小] 类型:转载 使用for命令读取dir /tc /o-d /a的结果,可以分成4段,前两段为日期与时间,第3段为目录或文件大小,第4段为文件名或目录名。然后根据第1段和第2段与需要的时间进行比较,决定是否删除文件 @echo off rem cd /d f:temp rem mDateTime格式: yyymmddHHmm set mDateTime=200608161907 for /f "skip=4 tokens=1,2,3,4* delims=<>" %%i in ('dir /a /-
umount 用法
mount 原始目录 新挂载目录例如# mount /dev/cdrom /media/cdrom &前提 /media/cdrom 必须存在 并且有权限哦。umount 挂在目录例如# umount /media/cdrom & 此时取消的是挂载目录 而不是原始目录。另外 umount命令时 容易提示 目录正忙 此时可以用 fuser -u /media/cdrom 查看 当前目录的访问用户情况。并且可以用fuser -k /media/cdrom 来杀掉此进程。再用 umount 来取消挂载 。[@more@]
解压 TAR 文件到指定目录的方法
tar在linux上是常用的打包、压缩、加压缩工具,他的参数很多,折里仅仅列举常用的压缩与解压缩参数 参数: -c :create 建立压缩档案的参数; -x : 解压缩压缩档案的参数; -z : 是否需要用gzip压缩; -v: 压缩的过程中显示档案; -f: 置顶文档名,在f后面立即接文件名,不能再加参数 举例: 一,将整个/home/www/images 目录下的文件全部打包为 /home/www/images.tar [root@xoaocom ~]# tar -cvf /home/www/images.tar /home/www/images ← 仅打包,不压缩 [root@xoaocom ~]# tar -zcvf /home/www/images.tar.gz /home/www/images ←
Ubuntu 简介
FROM: http://blog.chinaunix.net/u/19755/showart_162620.htmlUbuntu的发音 Ubuntu,源于非洲祖鲁人和科萨人的语言,发作 oo-boon-too 的音。了解发音是有意义的,您不是第一个为此困惑的人,当然,也不会是最后一个:) 大多数的美国人读 ubuntu 时,将 u 作为元音发音,类似单词 who 或者 boo ,重音在第二个音节即 u'buntu ,oo-boon-too 。 如果您喜欢撒哈拉,喜欢它令人窒息的温柔、梦幻般的寂寥还有张扬恣肆的旷远,您大可在第一个 u,后面带些嗡嗡声: oom-boon-too。 Ubuntu的中文发音大约为: 乌班图 Ubuntu的涵
不同 OS , 不同 Cluster 软件对心跳线网卡数量的要求
1, Solaris 的 Sun cluster 和 Veritas 的 VCS 要求每个主机有 两个网卡做 心跳网卡2 , HACMP , Linux 下的 cluster 要求每个主机 有一个网卡做 心跳网卡。[@more@]
UNIX date Manual
#/> man date-------------------------------------------------------------------------------Commands Reference, Volume 2-------------------------------------------------------------------------------date CommandPurposeDisplays or sets the date or time.SyntaxTo Set the Date and Time as Root User/usr/bin/date [ -n ] [ -u ] [ Date ] [ +FieldDescriptor ... ]To Display the Date and Time/usr/bin/date [ -u ] [ +FieldDescriptor ... ]Description Attention: Do not change the date when the system is r
Solaris mount cdrom
vold 命令[@more@]
Learn AWK ; a powerful tool
awk 'BEGIN {FS =":"} {print NR,NF , $0 } ' /etc/passwd awk 'BEGIN { FS = ":" } { print $1 | "sort" }' /etc/passwd awk 'BEGIN { for (i = 1; i <= 7; i++) print int(101 * rand()) }' awk 'length($0) >50 {print length($o) , $0 }' /etc/passwd[@more@]
用上一次的命令对AIX命令快速操作
在AIX下使用,默认的shell是KSH,和linux下的bash不一样的是,他不能采用我们大家已经熟悉的DOS下的键或者其他我们已经熟悉的快捷键来使用我们上次已经使用过的命令,比如在DOS命令状态下(我把我自己经常用的快捷键列出来,可能还其他的,慢慢补充),大家可以通过F7来取得你已经在当前DOS窗口中输入过的不重复的命令(Windows对你自己在当前窗口顺序输入的非重复命令进行排序,以0,1,2...来编号),F1重复上次同一个位置上的字符,F3重复上次所有的命令,F5和F8向上翻我已经输入过的命令,F9是可以输入你要显示的上次输入的非重复的命令
Solaris 10 x86 下装 VCS 5.0
bash-3.00# ./installvcs Veritas Cluster Server 5.0 Installation ProgramCopyright (c) 2007 Symantec Corporation. All rights reserved. Symantec, the Symantec Logo are trademarks or registeredtrademarks of Symantec Corporation or its affiliates in the U.S. and other countries. Other names may be trademarks oftheir respective owners.The Licensed Software and Documentation are deemed to be "commercial computer software" and "commercial computer so
Solaris 下卸载程序 pkgrm
bash-3.00# cd /usr/sbinbash-3.00# ls pkg*pkgadd pkgask pkgchk pkgrmbash-3.00# cd /usr binbash-3.00# cd /usr/binbash-3.00# ls pkg*pkg-config pkgadm pkgcond pkginfo pkgmk pkgparam pkgproto pkgtransbash-3.00#[@more@]
Solaris devfsadm 一个命令, 让我郁闷了一下午 !
知道与不知道之间,只是一张纸。08.03.05 I want to add a disk in vmware system of solaris 10 os , but i could not find it using the command "format " . I search in the net . I found something about this as following . But not the same situation as what i see . 最后,终于在 www.baidu.com 中,通过关键词"solaris 10 增加硬盘" 找到了 http://bbs.chinaunix.net/archiver/tid-602888.html 。不容易啊! 不过,我相信,我会对这个命令有深刻的印象的:devfsadm 看一下这个结果:bash-3.00# devfsadm
Solaris 常见问题汇总
From : http://www.ixpub.net/viewthread.php?tid=693204&extra=&page=1SUN服务器和存储系统介绍SUN的产品线极为丰富。服务器产品线Sun Blade系列(刀片式)Netra系列(运营商级服务器)SUN Fire系列:V系列(中低端)/E系列(中高端)/T系列(CoolTreads服务器)/X系列&V40z(x64服务器)Sun Rack系列(机架型机柜)存储产品线(磁带库、磁带机、磁盘存储、虚拟磁带库以及密钥管理站)叫做Sun StorageTekSUN公司产品线地址:http://cn.sun.com/products/服务器产品线Sun Blade 8000模块化系统* 每个服务器模块 4 个双核 AMD
Solaris 10 上网配置
1. Enable the network card #ifconfig hme0 plumb ifconfig -a command should show following type of output which means device is enabled and is ready to configure ip address and netmask : hme0: flags=842<BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 0.0.0.0 netmask 0 ether 3:22:11:6d:2e:1f 2. Configuring ipaddress and netmask and making the interface status as up .#ifconfig hme0 192.9.2.106 netmask 255.255.255.0 up #ifconfig -a will now show the ip address , netmask and up status as follows :hm
想用 Solaris 作为日常工作的操作系统平台! ( First Error -- not on system console )
when i try to telnet to free solaris 9, it says "not on system console" after inputting id and pswd. from win-xp and free solaris itself it says same thing. whats wrong!? check /etc/default/login. it appears that you are attempting to remote access with the root id (not a good idea with telnet, or any other program btw). there is a root lockout located
Linux Raw Devices
From : http://space6212.itpub.net/post/12157/412941这几天看了一下linux下的裸设备管理,做了一些笔记,不敢独享,共享如下:(笔记的内容不一定正确,有错误请指出)1、什么裸设备?字符设备?块设备?裸设备:也叫裸分区(原始分区),是一种没有经过格式化,不被Unix/Linux通过文件系统来读取的特殊字符设备。裸设备可以绑定一个分区,也可以绑定一个磁盘。字符设备:对字符设备的读写不需要通过OS的buffer。它不可被文件系统mount。块设备:对块设备的读写需要通过OS的buffer,它可以被mount到文件系统中。2、一个系统可以有多少个