http://www.coolcoder.in/2014/02/find-command-usage-in-linux-with.html find searches the directory tree rooted at each given file name by evaluating  the given expression from left to right, according to the rules of precedence, until the outcome is k…
Linux/Unix 指令使用说明的格式介绍(the Bash Command 'Usage' Syntax) 摘自    金马的Blog 原文  http://www.lijinma.com/blog/2014/08/24/bash-command-usage-syntax/ 此片文章是对自己的一个提醒! 很多时候在 Linux/Unix 平台上看到一个命令的 Usage 的时候,以为看懂了,其实根本没看懂,还需要通过 man 来查阅,今天我就讲讲 Usage 的语法(syntax). bol…
Memory Usage On linux, there are commands for almost everything, because the gui might not be always available. When working on servers only shell access is available and everything has to be done from these commands. So today we shall be checking th…
#! /usr/bin/expect -f# this script is used to practise the command "expect" #when "lindex" have been used here, the array index begins with 0 but not with 1set user [lindex $argv 0]set host [lindex $argv 1]set passwd [lindex $argv 2] s…
Regular expressions are used to search and manipulate the text, based on the patterns. Most of the Linux commands and programming languages use regular expression. Grep command is used to search for a specific string in a file. Please refer our earli…
一.脚本服务化目的 1.python 在 文本处理中有着广泛的应用,为了满足文本数据的获取,会每天运行一些爬虫抓取数据.但是网上买的服务器会不定时进行维护,服务器会被重启.这样我们的爬虫服务就无法运行.这个时候我们可以把python脚本服务化,服务器重启后,脚本就会自动运行.解决服务器维护后需要手动运行python脚本. 2.实现方法: 给编写好的python脚本开头加上 #!/usr/bin/python 3.启动shell 脚本 编写 vi  pystock.sh #vim /etc/ini…
Linux comes with a host based firewall called Netfilter. According to the official project site: netfilter is a set of hooks inside the Linux kernel that allows kernel modules to register callback functions with the network stack. A registered callba…
转载一个shell统计linux系统中每个程序的内存使用情况,因为内存结构非常复杂,不一定100%精确,此shell可以在Ghub上下载. [root@db231 ~]# ./memstat.sh Private + Shared = RAM used Program 540.78 mb + 175.56 mb = 716.35 mb oracle(25) 24.50 mb + 327.00 kb = 24.82 mb iscsiuio 15.37 mb + 341.00 kb = 15.70…
sometime, to make your change of configuration file be effective to web application, we have to restart the tomcat again then reload the memory cache. of course,if you are senior engineer with rich experience on the environmental infos , you will kno…
问题描述: centos 系统没有 telnet 命令 bash: telnet: command not found 1.安装telnet服务 (3个) yum install xinetd telnet telnet-server -y 修改配置文件(): # 修改/etc/xinetd.d/telnet # 将disable = yes 值改为no disable = no 2.配置开机启动 chkconfig telnet on 3.需要激活xinetd服务 # service xine…