码迷,mamicode.com
首页 >  
搜索关键字:history    ( 2989个结果
Shell脚本入门学习笔记
1.shell操作系统和用户之间。负责解释命令行2./etc/shells 记录登录系统有效支持shell3./etc/passwd 最后,有人谁可以看到用户的默认shell4.直接输入shell的名称 能够切换shell5.shell命令的记录能够用history查看 history -c 清除历...
分类:系统相关   时间:2015-07-14 17:53:12    阅读次数:168
日志收集(一)
废话不多说,直接进入主题。总体架构是客户端统一用rsyslog日志收集,--->fluentd服务器上--->mongondb集群--->Elasticsearch+Kibana服务器上展示。rsyslog安装和配置1、更改history格式在/etc/profile.d目录下创建history.sh脚本,内容如下HISTTIMEFORMAT=‘%F%T‘HIST..
分类:其他好文   时间:2015-07-14 06:21:38    阅读次数:270
Js返回上一页,刷新页面,定时刷新,改变地址栏 等常用实用技巧
1. Javascript 返回上一页history.go(-1), 返回两个页面: history.go(-2);2. history.back().3. window.history.forward()返回下一页4. window.history.go(返回第几页,也可以使用访问过的URL)例:...
分类:Web程序   时间:2015-07-13 11:38:14    阅读次数:104
最大ASCII的和问题
问题:One day when you are going to clear all your browsing history, you come up with an idea: You want to figure out what your most valued site is. Ever...
分类:其他好文   时间:2015-07-12 00:04:01    阅读次数:189
js刷新页面和跳转
javascript返回上一页:1、返回上一页 history.go(-1); 返回上两个页面 history.go(-2);上一页2、history.back().3、window.history.forward() 返回下一页4、window.history.go(返回第几页,也可以是url)5...
分类:Web程序   时间:2015-07-10 18:43:34    阅读次数:126
Linux Shell命令系列(2)
6. history命令“history”命令就是历史记录。它显示了在终端中所执行过的所有命令的历史。7. sudo命令“sudo”(super user do)命令允许授权用户执行超级用户或者其它用户的命令。通过在sudoers列表的安全策略来指定。root@tecmint:~# sudo add...
分类:系统相关   时间:2015-07-09 19:29:17    阅读次数:161
nyoj 364——田忌赛马——————【贪心】
田忌赛马时间限制:3000ms | 内存限制:65535KB难度:3描述Here is a famous story in Chinese history."That was about 2300 years ago. General Tian Ji was a high official in t...
分类:其他好文   时间:2015-07-08 18:31:41    阅读次数:74
Linux 查看所有登录用户的操作历史
在linux系统的环境下,不管是root用户还是其它的用户只有登陆系统后用进入操作我们都可以通过命令history来查看历史记录,可是假如一台服务器多人登陆,一天因为某人误操作了删除了重要的数据。这时候通过查看历史记录(命令:history)是没有什么意义了(因为history只针对登录用户下执行....
分类:系统相关   时间:2015-07-08 12:40:35    阅读次数:130
设置python 命令行交互程序自动补齐
1. 新建Python环境变量配置文件: vim ~/.pystartup # Add auto-completion and a stored history file of commands to your Python # interactive interpreter. Requires Python 2.0+, readline. Autocomplete is # ...
分类:编程语言   时间:2015-07-07 23:03:47    阅读次数:482
Linux系统下用户行为审计
以下内容在RHEL 6.4下测试通过。1、编写脚本Command_history.sh,生产历史命令记录文件,内容如下#!/bin/bash [ -d /usr/lib/.cmdlog ] || mkdir -p /usr/lib/.cmdlog cmdlog_file="/usr/lib/.cmd...
分类:系统相关   时间:2015-07-07 14:30:19    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!