Justin Lim
walking in circles
Menu Close
  • Home
  • kubectl & jq
  • awk
  • sed
  • grep
  • Wishlist
  • Privacy Policy

raw

0

How to get major/minor numbers for raw devices

Posted on October 23, 2008 by jlim0930

#!/usr/bin/env perl while () { /^s*#/ and next; /(S+)s+(d+)s+(d+)/ and do { ($rawname, $major, $minor) = ($1, $2, $3); $syspath = qx!find /sys/block -name dev | xargs grep -l “^$major:$minor$” !;

System Stuff linux, raw, system

Tags

2 6 7 CA centos certificate cloud container dell docker docker-compose eck elastic elastic-agent elasticsearch elk Ethan fail2ban filebeat fleet grub grub2 http k8s kibana kubectl kubernetes linux loadbalancer metricbeat minikube minio monitoring openssl operator pod redhat rhel sles ssl stack systemd tls unix yum

Recent Posts

  • Fleet server with logstash output – elastic-agent
  • deploy-eck – script to automate various configurations of elasticsearch with ECK
  • Google Cloud scripts
  • Updated deploy-elastic script – version 8
  • Elasticsearch on k8s (ECK) All about passwords

Recent Comments

  • Susie on Fleet server with logstash output – elastic-agent
  • deploy-eck – script to automate various configurations of elasticsearch with ECK – Justin Lim on Google Cloud scripts
  • jlim0930 on Fleet server with elasticsearch in docker container
  • Updated deploy-elastic script – version 8 – Justin Lim on Updated deploy-elastic script – version 7
  • Bill Hodgkinson on Fleet server with elasticsearch in docker container

Categories

  • Cooking Stuff
  • General Stuff
  • Mobile Stuff
  • System Stuff
  • Uncategorized

© 2022 Justin Lim. All rights reserved.
Hiero by aThemes