blatSrc35.zip下载地址:http://users.soe.ucsc.edu/~kent/src/对于下载好的源代码安装包blatSrc35.zip,需进行编译,安装过程如下:1.用unzip blatSrc35.zip解压缩包;2.bash:cd blatSrc 进入blatSrc文件夹...
分类:
系统相关 时间:
2014-07-18 17:09:30
阅读次数:
2099
#!/bin/bash#:set ff=unix #:set nobomb #-*- coding:utf-8 -*- ###################################################################### ## Filename: Trash....
分类:
系统相关 时间:
2014-07-18 08:36:13
阅读次数:
310
一:Shell 概念
shell 这个词都不陌生,意思是 “壳” 是介于OS 核心与用户之间的一层交互,在linux系统中,用户可以通过命令终端,使用shell 命令向下传达自己的意愿,
驱使kernel 调动硬件实现自己的目的!...
分类:
系统相关 时间:
2014-07-17 20:11:57
阅读次数:
354
shell&python脚本的对比下面是收集系统信息的脚本,对比一下,shell和python的区别。#!/bin/bash
#Asysteminformationgatheringscript
functionuname_func()
{
UNAME="uname-a"
printf"Gatheringsysteminformationwiththe$UNAMEcommand:\n\n"
$UNAME
}
functiondisk_func(..
分类:
其他好文 时间:
2014-07-17 19:38:27
阅读次数:
274
Linux的基本原则1、Linux是由目的单一的小程序组成,组合小程序完成复杂任务。2、Linux系统下一切皆文件。3、尽量避免捕获用户借口。4、配置文件保存为纯文本格式。shell:人机交互接口bash(shell)GUI接口:类似Windows窗口GLI接口:命令窗口管理员显示为#普通用户为$Linux命令..
分类:
系统相关 时间:
2014-07-17 10:35:14
阅读次数:
344
#!/bin/bash#forsecurityofosforipin`catip.txt`doecho-e"\033[31m##################$ip#####################\033[0m"RedhatVersion=`ssh$ip-C"cat/etc/issue"|awkNR==1‘{print$7}‘`if[${RedhatVersion}=‘5.6’]thenssh$ip-C"chattr-i/etc/login.defs&&authconfig--..
分类:
其他好文 时间:
2014-07-17 09:41:28
阅读次数:
257
#!/bin/bash#forsecurityofosforipin`catip.txt`doecho-e"\033[31m##################$ip#####################\033[0m"scpopenssl-0.9.8za.tar.gz$ip:/tmp/ssh$ip-C"tar-xzvf/tmp/openssl-0.9.8za.tar.gz-C/tmp/&&cd/tmp/openssl-0.9.8za&&./configsharedno-z..
分类:
其他好文 时间:
2014-07-17 09:18:46
阅读次数:
205
linux命令执行遵循环境变量PATH中的路径,但是有时我们会发现这种现象:#mv/sbin/ls/bin/
[root@xx~]#ls/tmp/
-bash:/sbin/ls:Nosuchfileordirectory/sbin和/bin同样是PATH环境变量中的搜索路径,但是移动之后却发现不了命令,这是因为,命令在上次执行之后以key-value形式缓存..
分类:
系统相关 时间:
2014-07-17 08:11:59
阅读次数:
347
在ubuntu14.04上,通过qtcreator进行串口编程时出现:tryingtoopenfile"/dev/ttyS0"couldnotopenfile:权限不够portopenisfalsejgc>ls-al/dev/ttyS0
crw-rw----1rootdialout4,64Mar2321:00/dev/ttyS0
jgc>echoxyzzy>/dev/ttyS0
bash:/dev/ttyS0:Permissiondenied解决方..
分类:
其他好文 时间:
2014-07-17 08:01:38
阅读次数:
455
#!/bin/bash ver=`cat gate.rc | grep FILEVERSION`ver=`echo $ver | awk '{print $2;}'`ver=`echo $ver |sed 's/\([0-9]*\),\([0-9]*\),\([0-9]*\),\([0-9]*\)/...
分类:
系统相关 时间:
2014-07-17 00:54:24
阅读次数:
363