[root@node1 tmp]# vi /etc/profile export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });echo "[euid=$(whoami)]":$(who am i):[`pwd`]#"$msg ...
分类:
系统相关 时间:
2019-10-13 20:57:07
阅读次数:
192
题目链接:http://poj.org/problem?id=1789 大意: 不同字符串相同位置上不同字符的数目和是它们之间的差距。求衍生出全部字符串的最小差距。 1 #include<stdio.h> 2 #include<math.h> 3 #include<algorithm> 4 usin ...
分类:
其他好文 时间:
2019-10-10 20:28:12
阅读次数:
97
在/etc/profile或/etc/profile.d/下,或者在/etc/init.d/rc.local里加下面一段命令:exportHISTTIMEFORMAT="%F%Twhoami"exportPROMPT_COMMAND=‘{msg=$(history1|{readxy;echo$y;});logger"[euid=$(whoami)]"
分类:
系统相关 时间:
2019-10-09 19:31:57
阅读次数:
131
The History of PageRank PageRank is a link analysis algorithm which assigns a numerical weighting to each Web page,with the purpose of "measuring"rela ...
分类:
编程语言 时间:
2019-10-08 09:23:38
阅读次数:
211
shell进程会在其会话中保存此前用户提交并执行过的命令 可以使用~]# history进行查看,history命令本身属于shell的内嵌命令 命令历史可分为内存中的历史命令以及历史文件中的历史命令,其容量默认大小均为1000条(可修改),从主机开机到关机的这段时间中所用到的命令会保存在内存中,关 ...
分类:
其他好文 时间:
2019-10-07 13:38:11
阅读次数:
88
class Label: '''单闭合标签''' @staticmethod def br(): '''换行,注意空白折叠现象''' return '<br>' @staticmethod def hr(): '''文章和文章之间进行添加横线''' return '<hr>' @staticmeth ...
分类:
Web程序 时间:
2019-10-07 12:51:03
阅读次数:
116
Browse Princeton's Series (by Date) in Princeton Economic History of the Western World Joel Mokyr, Series Editor Titles in the Princeton Economic Hist ...
分类:
其他好文 时间:
2019-10-07 00:53:19
阅读次数:
145
在Linux里 所有都是在命令行操作,但是我们单纯依靠上下左右键来操作光标的位置和删除,着实有些许麻烦,以及曾经输入过长长的参数,下个命令还需要在做一遍,让人很是头大。 今天总结一下自己常用的一些快捷的方式,来提升一下效率,有的不是我常用的,但是是我准备要练习的快捷键,这和武侠练武一样,学会一个快捷 ...
分类:
系统相关 时间:
2019-10-06 15:10:20
阅读次数:
93
视图函数views.py 模板detail.html ...
分类:
其他好文 时间:
2019-10-05 18:51:27
阅读次数:
119
我们来制作一个导航栏: shouye jiaoben wolaile kkp duzi Lion dancing with a history of more 2,000 years has been a form of traditional Chinese folk art. During th ...
分类:
其他好文 时间:
2019-10-05 00:53:29
阅读次数:
96