上一页 1 ··· 3 4 5 6 7 8 下一页
2012年8月3日
摘要: --gcc编译c1 gcc -c hello.c2 gcc -o hello hello.o3 ./hello--RHEL5.0切换到超级用户su - root--统计目录或文件所占磁盘大小du -b /home/chenyong--查看当前目录pwd--删除目录rm -rf dir--拷贝文件夹aa到home(递归拷贝)cp -r aa/ /homecp -rf aa/ /home(不询问直接覆盖aa里的全部文件)--建立连接ln -s /home/chenyong/Hello.java Hello--.bash_profile用于配置用户的环境变量,如:vi /home/chenyong/ 阅读全文
posted @ 2012-08-03 23:39 Chenyong Liu 阅读(125) 评论(0) 推荐(0)
摘要: --ssh secure shell多用户远程操作linux,进行widows和linux之间的文件的上传和下载安装和使用1 下载SSHSecureShellClient3.2.9.zip,直接安装2 使用ping命令确保windows和linux主机间网络连通3 打开22号端口 执行命令:/etc/init.d/sshd start4 关闭windows防火墙5 quick connect HostName:linux主机ip UserName:linux用户名 阅读全文
posted @ 2012-08-03 22:47 Chenyong Liu 阅读(130) 评论(0) 推荐(0)
2012年8月1日
摘要: --eclipse,tomcat,mysql1、下载eclipse-java-juno-linux-gtk.tar.gzapache-tomcat-7.0.29.tar.gzMySQL-server-5.5.25a-1.rhel5.i386.rpmMySQL-client-5.5.25a-1.rhel5.i386.rpm2、安装//eclipse和tomcat直接解压缩即可//安装mysql(1)rpm -ivh MySQL-server-5.5.25a-1.rhel5.i386.rpmrpm -ivh MySQL-client-5.5.25a-1.rhel5.i386.rpm(2)安装完成后 阅读全文
posted @ 2012-08-01 11:20 Chenyong Liu 阅读(284) 评论(0) 推荐(0)
2012年7月31日
摘要: //查看进程ps -aux | more//终止进程kill pid如: kill -9 5229//动态监控进程toptop -d 10 //每隔10秒更新//查看日历cal 8 2012cal 2012//网络端口监控netstat -anp | more 阅读全文
posted @ 2012-07-31 23:27 Chenyong Liu 阅读(149) 评论(0) 推荐(0)
摘要: --crontab//编辑/终止/查看任务crontab -e/r/l//任务格式m(分) h(时) d(天) m(月) w(星期) command如:* * * * * date >> /home/mydate1 //每隔一分钟记录系统时间到mydate1文件中//shell编程//编辑sh文件vi /home/mytask.shdate >> /home/mydate2cp /home/mydate2 /home/aa//执行chmod 744 /home/mytask.shcrontab -e* * * * * /home/mytask.sh 阅读全文
posted @ 2012-07-31 22:02 Chenyong Liu 阅读(135) 评论(0) 推荐(0)
2012年7月30日
摘要: --linux网络环境配置//查看ip:ifconfig//方法1:(1)输入setup命令(2)配置完成后,输入cd /etc/rc.d/init.d/(3)运行network restart命令//方法2://临时生效,重启后恢复到原来的ipifconfig [网卡名称/eth0] [ip add]ifconfig [网卡名称] network [subnet mask]//方法3:(1)修改/etc/sysconfig/network-scripts/ifcfg-eth0文件(2)配置完成后,输入cd /etc/rc.d/init.d/(3)运行network restart命令--rp 阅读全文
posted @ 2012-07-30 16:46 Chenyong Liu 阅读(193) 评论(0) 推荐(0)
摘要: 《linux命令、编辑器和shell编程》《linux和unix shell编程指南》--查看linux内核支持的种类cd /binls -l *sh--查看目前使用的shellenv //查看环境变量--更改shellchsh -s /bin/csh--查看使用过的命令history--执行编号为528的命令!528 阅读全文
posted @ 2012-07-30 11:44 Chenyong Liu 阅读(118) 评论(0) 推荐(0)
2012年7月24日
摘要: select * from emp where deptno=(select deptno from emp where ename='SMITH') and ename'SMITH';select * from emp where job in(select distinct job from emp where deptno=10);select * from emp where sal>all(select sal from emp where deptno=30);select * from emp where sal=some(select sa 阅读全文
posted @ 2012-07-24 22:59 Chenyong Liu 阅读(151) 评论(0) 推荐(0)
摘要: select ename from emp where ename like '_C%';select * from emp where sal in(800,1600,950);select * from emp where mgr is null;select * from emp where sal between 2000 and 3000;select * from emp where (sal>500 or job='manager') and (ename like 'J%');select avg(sal),max(sal) 阅读全文
posted @ 2012-07-24 19:30 Chenyong Liu 阅读(151) 评论(0) 推荐(0)
摘要: rename tablename to newname;/***修改表名***/select ename,(sal+nvl(comm,0)) 年薪 from emp;/***nvl(),comm若为null,返回0***/select ename || '的月薪是' ||(sal+nvl(comm,0)) 月薪 from emp;savepoint aa;/***设置保存点***/...rollback to aa;/***回退到保存点***/ 阅读全文
posted @ 2012-07-24 17:31 Chenyong Liu 阅读(139) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页