Quantcast
Channel: Lamp Blog » Shell
Browsing latest articles
Browse All 4 View Live

Linux Grep命令使用的详细介绍

grep简介 grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、...

View Article



Linux下mysql定时自动备份并FTP到远程脚本

1.添加backupmysqleveryday.sh(vi /data/shell/backupmysqleveryday.sh) #!/bin/sh #this shell is user for backup mysql data everyday #author:www.ieliwb.com #path-config base_mysql_path=/data/webserver/mysql/...

View Article

30分钟搞定BASH脚本编程

一个最简单的脚本 这篇指南将通过一些例子来帮助大家学习功能强大的shell脚本编程. 在这一节中我将学习一些简单的脚本,它将有利于你深入学习一些知识。 一个最经典的Hello World程序 #!/bin/bash echo Hello World 这个脚本只有二行,它的第一行这个脚本程序由那个程序来解释.第二行只有一个简单的动作,它的功能是在终端上打印出一行”Hello World”...

View Article

解决 ssh 自动掉线

vps 一直是使用 ssh管理,但是ssh默认一段时间不操作就会自动掉线,查阅资料后,发现修改如下参数可以解决掉线问题。 在 /etc/ssh/sshd_config 文件里添加以下两行: ClientAliveInterval 15 ClientAliveCountMax 45 重启sshd服务 #/etc/init.d/ssh restart ClientAliveInterval...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images