linux – “echo”中的“ – – – ”是什么 – – – “> / sys / class / scsi_host / host0 / scan’是什么意思?

我知道 linux命令
echo "- - -" > /sys/class/scsi_host/host0/scan

用于重新扫描scsi主机.但是“ – – – ”在命令中意味着什么?

解决方法

这三个值代表通道,SCSI目标ID和LUN.破折号充当通配符,意思是“重新扫描一切”

A quick google search出现this RHEL doc (and dozens of other answers)

This is the same command described in Section 7,“Adding a Storage Device or Path” to add a storage device or path. In this case,however,the channel number,SCSI target ID,and LUN values are replaced by wildcards. Any combination of identifiers and wildcards is allowed,allowing you to make the command as specific or broad as needed. This procedure will add LUNs,but not remove them.

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...