mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
e7e6f30f6e
commit
f3eb1971c3
@ -15,11 +15,18 @@ outf=/root/drivemap.txt
|
||||
# Use 'sort -k 3' if $9 $10 $11
|
||||
ls -lR /dev/disk |grep -w /sd[a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||
>$outf
|
||||
ls -lR /dev/disk |grep -w /vd[a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||
>>$outf
|
||||
|
||||
echo '========' >> $outf
|
||||
|
||||
ls -lR /dev/disk |grep -w /sd[a-z][a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||
>>$outf
|
||||
ls -lR /dev/disk |grep -w /vd[a-z][a-z] |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||
>>$outf
|
||||
|
||||
ls -lR /dev/disk |grep -w /nvme.n. |sed 's^../..^/dev^' |awk 'NF>0 {print $11" "$10" "$9}' |column -t |sort \
|
||||
>>$outf
|
||||
|
||||
echo '=====' >>$outf
|
||||
lsscsi -s >>$outf
|
||||
@ -37,6 +44,7 @@ function hdps () {
|
||||
|
||||
hdps |sort -k 2 >>$outf
|
||||
|
||||
cp -v $outf /tmp/
|
||||
ls -l $outf
|
||||
|
||||
# To search outfile:
|
||||
|
Loading…
x
Reference in New Issue
Block a user