
linux
fypop1
这个作者很懒,什么都没留下…
展开
-
linux里面jdk安装
使用JAVA开发,跟linux的关系可谓非常密切。下面就jdk在linux下的安装做个总结1、在sun官方网站下载jdk的linux版本,上传至虚拟机里面 cp jdk文件名字 你指定的目录 su root 和 su -root区别不小,前者可以获得root的权限,后者可以设置环境变 量,增加新的用户等。2、vi /etc/profile 设置...2010-04-12 15:27:15 · 106 阅读 · 0 评论 -
linux mysql
enquiry mysql version in centos linuxyum list installed | grep mysqlyum -y remove mysql-libs.x86_64enquiry mysql version in yum repositoryyum list | grep mysql oryum -y list mysql*install my...原创 2015-07-18 09:35:38 · 113 阅读 · 0 评论 -
信息查看定时任务
uname -aview all the information of the linux cat /proc/cpuinfo dmesg |grep CPUfind the cpu info file /bin/ls find the bit of the system lsb_release -afind the release ver...原创 2015-08-16 22:05:15 · 182 阅读 · 0 评论 -
iptables
service iptables status1) 重启后生效开启: chkconfig iptables on关闭: chkconfig iptables off2) 即时生效,重启后失效开启: service iptables start关闭: service iptables stop...原创 2015-08-16 22:06:27 · 107 阅读 · 0 评论 -
shell
[root@linuxstudy testshell]# cat s2.sh #!/bin/shexport name=jackprintf "p0=%s \n" "$0"echo "p1="$1echo "p2="$2echo $nameecho "pid="$$echo "all param num:"$#echo "all param:"$@e原创 2015-08-18 22:18:21 · 82 阅读 · 0 评论 -
cut sed
[root@linuxstudy testshell]# cut -d: -f 1 /etc/passwdrootbindaemonadmlpsyncshutdownhaltmailuucpoperatorgamesgopherftpnobodydbususbmuxdvcsartkitavahi-autoipdabrthaldaemongdmntpapachesaslauthpostfixpu...原创 2015-08-18 22:35:42 · 148 阅读 · 0 评论 -
nohup command &
[root@linuxstudy testshell]# jobs -l[1]+ 2568 Running nohup python pytest1.py &[root@linuxstudy testshell]# bg %1-bash: bg: job 1 already in background[root@linuxstudy testshell]...原创 2015-08-19 22:34:23 · 249 阅读 · 0 评论 -
读取文件名,统计文件数量
[root@linuxstudy sh]# cat ./s1.sh #!/bin/bashfilelist=$(ls ~/)echo "-----------begin------------"for file in $filelistdoecho $file if [ -f ~/$file ] then echo "this is...原创 2015-08-31 23:19:51 · 392 阅读 · 0 评论 -
awk gsub
awk -F ',' '{for(i=1;i原创 2015-09-12 15:19:42 · 547 阅读 · 0 评论