摘要: 每个逻辑卷都是块设备,于/dev/dm-[0-n],主设备号253,从设置从0开始编号,dm => device mapper dmsetup info /dev/dm-0 阅读全文
posted @ 2020-07-17 20:08 ascertain 阅读(246) 评论(0) 推荐(0)
摘要: 销毁磁盘数据dd if=/dev/urandom of=/dev/sdb 备份和恢复磁盘数据dd if=/dev/sda | gzip > image.gzgzip -d --stdout image.gz | dd of=/dev/sdc ibs 输入块大小obs 输出块大小skip : skip 阅读全文
posted @ 2020-07-17 18:57 ascertain 阅读(154) 评论(0) 推荐(0)
摘要: dig -t soa jd.com +multiline 显示具体的soa信息 dig isc.com +nssearch 查询一个域的授权DNS服务器 dig -x 7.7.7.7 +multiline (PTR)记录 阅读全文
posted @ 2020-07-17 18:45 ascertain 阅读(139) 评论(0) 推荐(0)
摘要: bc: 用于计算浮点数 echo "scale=4;3/13"|bc scale用于指定精度,默认为0,即只保留整数 $((4**3)) 引用4**3的结果 ((b=4**3)) 计算4**3的值赋给b b=$((4**3)) let b=4**3 echo $(ifconfig) 和 echo " 阅读全文
posted @ 2020-07-17 18:35 ascertain 阅读(111) 评论(0) 推荐(0)
摘要: dip = [] for _ in range(3): dip.append(int(input('{}: '.format(_)))) if dip[0]>dip[1]: if dip[0]>dip[2]: if dip[1]>dip[2]: dim=[dip[2],dip[1],dip[0]] 阅读全文
posted @ 2020-07-16 01:10 ascertain 阅读(426) 评论(0) 推荐(0)
摘要: 求100以内fabonacci sequence 阅读全文
posted @ 2020-07-15 21:19 ascertain 阅读(126) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-07-12 10:34 ascertain 阅读(98) 评论(0) 推荐(0)
摘要: inter process communication one host: signal semaphor shm: shared memory different host: rpc: remote procedure call 同样基于socket socket 阅读全文
posted @ 2020-07-10 23:08 ascertain 阅读(130) 评论(0) 推荐(0)
摘要: netstat -ano|findstr "80" 查找80字符串 ipconfig /release 释放通过DHCP获得的IP ipconfig /renew 通过DHCP获得地址 ipconfig /displaydns ipcofnig /flushdns nslookup => serve 阅读全文
posted @ 2020-07-10 22:28 ascertain 阅读(116) 评论(0) 推荐(0)
摘要: string site:URI 在某一站点内搜索 "string1 string2 ......... stringN" 作为整体搜索,必须使用double quotation marks 搜索引擎会进行分词等等,加入double quotation marks会禁止搜索引擎拆词string之间不会 阅读全文
posted @ 2020-07-10 22:24 ascertain 阅读(162) 评论(0) 推荐(0)
摘要: 将注册表中Compute\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters中的IPEntableRouter修改为1,默认为0(关闭) 阅读全文
posted @ 2020-07-10 21:47 ascertain 阅读(1322) 评论(0) 推荐(0)
摘要: 预编译二进制包groupadd --gid 666 --system mysqluseradd --uid 666 --gid mysql --system mysqlln -sv mariadb-VERSION-OS mysqlchown --recursive --dereference -L 阅读全文
posted @ 2020-07-08 01:47 ascertain 阅读(299) 评论(0) 推荐(0)
摘要: --dns-servers 是复数,主要用于内部架设的dns服务器,外部dns无法解析.-Pn Treat all hosts as online skip host discovery 明确知道主机存活或防火墙开启的机器,-Pn不启用探测前的ICMP请求,达到不触发防火墙的安全机制 -F fast 阅读全文
posted @ 2020-07-08 01:45 ascertain 阅读(209) 评论(0) 推荐(0)
摘要: -R --relative 把全路径拷贝到目标,把上级目录的全路径拷贝 不管加不加/ 都会讲源数据路径一起同步 通过--daemon方式pull,似乎只能复制文件,不能复制目录,-R选项无效但是--daemon方式push,/是文件 不带/ 是目录 -R是全路径 rsyncd.conf motd f 阅读全文
posted @ 2020-07-08 01:44 ascertain 阅读(87) 评论(0) 推荐(0)
摘要: 添加库文件路径: 1:导出环境变量 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/new_path 2:修改配置文件 ld.so.conf ld.so.conf.d/* LIBRARY_PATH 程序编译期间查找动态链接库时指定的查找路径,编译期,开发阶段, 只影 阅读全文
posted @ 2020-07-08 01:41 ascertain 阅读(566) 评论(0) 推荐(0)
摘要: vimrc的配置: colorscheme default filetype on filetype plugin on filetype indent on syntax enable syntax on set ai set autochdir set autoread set cindent 阅读全文
posted @ 2020-07-08 01:39 ascertain 阅读(130) 评论(0) 推荐(0)
摘要: restrict ip mask 不跟参数表示无任何限制,常用nomodify 客户端不能修改服务器时间,但可校时 noquery 不能校时 notrap: 不提供远程时间登陆功能 notrust 不接受没有认证的client server ip|hostname [prefer iburst] 设 阅读全文
posted @ 2020-07-08 01:34 ascertain 阅读(684) 评论(0) 推荐(0)
摘要: 1 #include "stdio.h" 2 #include "stdlib.h" 3 #include "time.h" 4 #define random(x) (rand()%x) 5 6 int main () 7 { 8 int m,l,p,q; 9 printf("输入第一个矩阵的维数m 阅读全文
posted @ 2020-07-08 01:28 ascertain 阅读(1632) 评论(0) 推荐(0)
摘要: vasp需要parallel_studio_xe_2018_update4_cluster_edition.tgz的intel mpi支持,openMPI需要更改makefile参数,麻烦/etc/profile.d/intel.sh --> source /etc/profile.d/intel. 阅读全文
posted @ 2020-07-07 17:53 ascertain 阅读(555) 评论(0) 推荐(0)
摘要: 使用*的时候,简单类型和复杂类型存在区别,复杂类型仅是复制引用地址 上面出错的原因为dict.update(k=v)中k必须是变量,不能是字符串,这个变量会被转换成字符串 阅读全文
posted @ 2020-07-07 12:50 ascertain 阅读(132) 评论(0) 推荐(0)