一、合理使用Shell历史命令记录功能在Linux下可通过history命令查看用户所有的历史操作记录,同时shell命令操作记录默认保存在用户目录下的.bash_history文件中,通过这个文件可以查询shell命令的执行历史,有助于运维人员进行系统审计和问题排查,同时,在服务器遭受黑客攻击..
分类:
系统相关 时间:
2014-09-15 19:47:39
阅读次数:
409
[centos@lob1scripts]$vish03.sh#!/bin/bash#Program#Thisprogramshows"HelloWorld!"inyourscreen.#History#2014/09/15lobsMonreleasePATH=/bin:/sbin:/usr/bin:usr/sbin:/usr/local/bin:usr/local/sbin:~binexport=PATHecho-e"Iwilluse‘touch‘commandtocreate3files."read-p"P..
分类:
其他好文 时间:
2014-09-15 19:47:30
阅读次数:
277
Linux shell获取天气并显示在你的终端命令提示符中,让你的屏幕更多彩。
分类:
系统相关 时间:
2014-09-15 19:17:39
阅读次数:
231
#!/bin/bash?
#This?is?a?ShellScript.?For?Auto?DB?Backup?
#Powered?by?alex@wg927.com?
#2014/2/25
#Setting?
#设置数据库名,数据库登录名,密码,备份路径,日志路径,数据文件位置,以及备份...
分类:
数据库 时间:
2014-09-15 17:58:59
阅读次数:
304
站在用户登录的角度来说,SHELL的类型:登录式shell: 正常通常某终端登录 su - USERNAME su -l USERNAME非登录式shell: su USERNAME 图形终端下打开命令窗口 自动执行的shell脚本 bash的配置文件: 全局配置 /...
分类:
其他好文 时间:
2014-09-15 17:40:39
阅读次数:
143
简介
简单来说pash就是bash+powershell
在linux中编译powershell脚本运行环境。在linux,mono中运行powershell脚本(*.ps1)
分类:
其他好文 时间:
2014-09-15 17:38:49
阅读次数:
338
希尔排序(Shell Sort)是插入排序的一种。是针对直接插入排序算法的改进。该方法又称缩小增量排序,因DL.Shell于1959年提出而得名。基本思想:算法先将要排序的一组数按某个增量d(n/2,n为要排序数的个数)分成若干组,每组中记录的下标相差d.对每组中全部元素进行直接插入排序,然后再用一...
分类:
编程语言 时间:
2014-09-15 17:18:09
阅读次数:
235
Quick Start
Interactive Analysis with the Spark Shell
BasicsMore on RDD OperationsCaching
Standalone ApplicationsWhere to Go from Here
This tutorial provides a quick introduction to using Sp...
分类:
其他好文 时间:
2014-09-15 12:57:48
阅读次数:
258
Spark Programming Guide
OverviewLinking with SparkInitializing Spark
Using the Shell
Resilient Distributed Datasets (RDDs)
Parallelized CollectionsExternal DatasetsRDD Operations
BasicsPa...
分类:
其他好文 时间:
2014-09-15 12:57:39
阅读次数:
192
1.查看ubuntu版本 shell> cat /etc/issue Ubuntu 14.04 LTS \n \l 扩展:查看内核版本 shell>uname -r 3.13.0-24-generic 查看详细版本号: shell>sudo lsb_release -a No LSB modules are available. Distributo...
分类:
其他好文 时间:
2014-09-15 11:31:48
阅读次数:
221