Linux运维(4)

Linux运维(4)

命令的语法通用格式: command options arguments

	发起一个命令,请求内核将某个二进制程序运行为一个进程

			程序 ————》进程

			静态 ————》动态(有生命周期)

命令本身是一个可执行的程序文件:二进制格式的文件,有可能会调用共享库文件;多数程序文件存放在:/bin,/sbin,/usr/bin,/usr/sbin,…

		共享库:64bits的库,32bits的库

注意:并非所有命令都有一个在某目录下与之对应的可执行程序文件

命令必须遵循特定格式规范:exe,msi,ELF(linux)

			可使用		file  +路径文件    查看文件的属性

命令分为两类: 由shell程序的自带的命令:内置命令(builtin)

					独立的可执行程序文件,文件名即命令名:外部命令

shell程序是独特的程序,负责解析用户提供的命令:

		查看:   whatis COMMAND

	注意:其执行过程是查询数据库进行的,

		手动更新数据库:makewhatis

man命令打开手册之后的操作方法: 翻屏:

																	空格键:向文件尾部翻一屏

																	b : 向文件首部翻一屏

																	Ctrl + d:向文件尾部翻半屏

																	Ctrl + u:向文件首部翻半屏

																	回车键: 向文件尾部翻一行

																	k : 向文件首部翻一行

																	G : 跳转至最后一行

																    #G: 跳转至指定行(#为数值)

																	1G: 跳转至文件首部

															文本搜索:

																	/keyword  (从首到尾)      或       ?keyword          (不区分大小写)

																			n :  与查找方向相同

																			N: 与查找方向相反

info COMMAND 获取命令的在线文档

搜索引擎: google:

					 keyword   site:domain.tld

					keyword  filetype:pdf

常用命令:

		 cd  -  : 在上一次所在目录与当前目录之间来回切换

		 ls :  列出指定目录下的内容

				-a :  显示所有文件,包括隐藏文件;-A  显示除 .   和  ..  之外的所有文件;-l   长格式列表,即显示文件的详细属性信息;

				-R: 递归显示指定路径下所有文件的内部文件      ;  -r   逆序显示

		cat :显示文本文件内容(正常显示)

				-n  :给显示的文本行编号

				-E :显示行结束符$

		tac :显示文本文件内容(逆序)

		file: 查看文件内容类型

					file  【FILE】 ....

		echo : 回显

					echo  -n  string  : 输出string,不自动进行换行

					 -e : 让转义符生效 

										\n  换行        \t  制表符    

string可以使用引号,单引号和双引号均可。单引号:强引用,变量引用不执行替换;双引号:弱引用,变量引用会被替换。

		shutdown:关机或重启命令

						shutdown [options]  [time]  [wall....]

								options:     -h  :  halt         -r :  reboot      -c :  cancel

								time:   now     hh:mm    +m     +0

								wall :    表示要展示的信息内容

		cal :  显示日历     cal  [[month]  year]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Using HTTPLoris is simple. In its most basic form, HTTPLoris merely needs a copy of Python 2.6. On a Linux machine, one must simply invoke the script in a terminal, stating a site to test: motoma@rocksalt:/home/motoma$ python pyloris-3.0.py motomastyle.com On Mac OS X, one invokes PyLoris the same way. Using the Terminal Application: hotdog:/Users/Motoma/ motoma$ python pyloris-3.0.py motomastyle.com Using HTTPLoris in Windows is a little different. One will need to know the location of the Python installation, and be in the proper directory. Load up a command prompt: C:\Users\Motoma\Desktop\pyloris-3.0>C:\Python26\python.exe pyloris-3.0.py motomastyle.com Advanced Options Invoking HTTPLoris by using the commands above start a limited to 500 connections across 50 threads, each sending at 1 byte/second and waiting until the connection is forced shut by the server. While this behavior will bog down an Apache server with the default settings, it is not a very thorough test. The following are some additionall options that will allow one to customize the way HTTPLoris works: -a, --attacklimit The --attacklimit flag restricts the number of total connections (current + completed) during a single session. Set this to zero to specify no limit. -c, --connectionlimit Adjusting the --connectionlimit flag can drastically change how well HTTPLoris performs. The --connectionlimit flag directly controls the number of concurrent connections held during the session. In a base Apache environment, when this number is above the MaxClients setting, the server is unresponsive. -t, --threadlimit This is the number of attacker threads run during the session. -b, --connectionspeed This is the connection speed for each individual connection in bytes/second. Comparing this with the lenght of the request, and you should have an accurate guess of how long each connection should linger. -f, --finish Specifying the --finish flag will cause HTTPLoris to finish and close connections upon
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值