xargs的用法示例
[oracle@redhat bdump]$ ls *3115*law_dbw0_3115.trc[oracle@redhat bdump]$ ls *3115* | grep 3115law_dbw0_3115.trc不加xargs,ls的结果作为grep要过滤的文本对象。[oracle@redhat bdump]$ ls *3115* | xargs grep...
The Three Unix File Time :atime, mtime, ctime (转自:Unix Power Tools 3rd ed.)
The difference between a change and a modification is the difference between altering the label on a package and altering its contents.If someon says chmod a-w myfile, that is a change; if someone say...
列出文件的inode信息
stat filename [root@redhat ~]# stat test.acm File: `test.acm' Size: 22 Blocks: 16 IO Block: 4096 regular fileDevice: 801h/2049d Inode: 130649 Links: 1Access: (0711/-...
linux启动级别
0 — Halt1 — Single-user mode2 — Multiuser mode, without networking3 — Full multiuser mode4 — Not used5 — Full multiuser mode (with an X-based login screen)6 — Reboot
RHEL43上启动telnet
修改/etc/xinetd.d/xinetd.d/krb5-telnet,把其中的disable改为no,然后关闭防火墙:service iptables stop
redhat的etc目录
1. /etc/sysconfig目录包含由rethat配置的多个脚本文件,以区别于etc目录下那些不是由redhat设计的配置文件。2. /etc/motd,表示Message Of Today ,文件的内容为所有用户登录系统时显示的欢迎信息,管理员可以根据...
更改solaris主机名及ip地址(zt)
更改solaris IP地址和主机名 一 、更改solaris IP 地址 立即更改: #ifconfig hme0 inet 192.168.1.1 netmask 255.255.255.0 up (重起之后新的ip将会丢失) 永久更改: 1)编辑文件/etc/hosts,更改...
使用man ascii查看ascii码表
[root@redhat ~]# man ascii
用perl代替grep
[root@redhat ~]# cat lawHi, David,I think I failed my anatomy test yeserday. I had a terriblestomachache. I think I ategreen tom too many fried green tomatoes.Anyway, Tom, I need your help. I'd like t...
使用汉语环境时,grep命令竟然不区分大小写
[root@redhat ~]# export LANG=zh_CN.GB18030[root@redhat ~]# grep [A-Z]om lawAnyway, Tom, I need your help. I'd like to make the test upthink you could help me? After work, about 7 PM,come to[root@redha...
top的用法
topThe top command is probably the most useful one for an Oracle DBA managing a database on Linux. Say the system is slow and you want to find out who is gobbling up all the CPU and/or memory. To disp...
转贴oracle两篇文章:Guide to Advanced Linux Command Mastery
Guide to Advanced Linux Command Mastery, Part 1Guide to Advanced Linux Command Mastery, Part 2
solaris上创建oracle数据库出现:out of memory 错误
在Solaris 10上安装Oracle 10g时,Oracle本身安装成功,但在创建数据库的时候发生了错误,错误信息为: ORA-27102 "Out of Memory"在/etc/system 下添加了推荐的关于share memory的参数,重起系统后还是没有效果,搜...
RedHat中四个用户配置文件使用的先后
在/etc/profile前后分别加上一行:into /etc/profileleave /etc/profile/etc/bashrc、/home/oracle/.bash_profile、/home/oracle/.bashrc也类似处理,则切换用户时可以看到如下效果从而可以得知,利用四个文件的先后...
liux中的一些缩写
rc:“runcomm”的缩写――即名词“run command”(运行命令)的简写。今天,“rc”是任何脚本类文件的后缀,这些脚本通常在程序的启动阶段被调用,通常是Linux系统启动时。如/etc/rs是Linux启动的主脚本,而.bashrc是...
putty乱码解决方法
编辑/etc/sysconfig/i18n将第1句“LANG="zh_CN.UTF-8"”改为“LANG="zh_CN.GB18030"”如果有用户的语言依然显示为英文,或乱码,则是因为在其/home/目录下的.bash_profile文件中设置了英文环境,按照以上方法修改即...
redhat el4下更改分辨率
以ro o t帐号登录字符界面# cd /etc /X11# vi xorg.cong修改下面内容:Subsection "Display"Depth 24Modes "1280x800" 只留下要设置的数值即可ViewPort 0 0EndSubsection...
redhat el 4安装vmware tools
在vmware界面的菜单中选择“install vmware tools ...”,注意这时并未安装tools。以root执行下面命令:# mount /dev/cdrom /mnt/temp# cd /mnt/temp# cp vmwaretools-....tar.gz /root# cd /root# tar zxf vmware...
redhat环境下vnc使用若干问题
vncviewer连接出错:一是连接时注意填入:ip(or hostname):编号二是关掉防火墙,命令为:#service iptables stop#chkconfig iptables off vncviewer切换全屏模式:F8vncviewer上看不到linux桌面:在vncserver所在的...
linux启动过程分析
机器加电开机启动BIOSBIOS完成初始化后,定位启动设备(可以在BIOS中设置),读取MBR,拷贝其到内存位置0x7c00,MBR中的小程序从MBR的分区表中搜索启动分区(active boot partion)。MBR:Master Boot Record,位于boot ...