Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

List all connected devices in OpenBSD

The sysctl command can list devices attached to the system. sysctl gets or sets kernel state.

To list how many disks you have:

sysctl hw.diskcount

To list disk names:

sysctl hw.disknames

Or sysctl -a | grep -i disk


dmesg | egrep '^(cd|wd|sd|fd). at '

Tags:

Filesystems

Openbsd

Block Device

Related

How to start windows 10 through grub command line Why can't I grep this way? Why does man print "gimme gimme gimme" at 00:30? acpi_idle vs. intel_idle No headphones output on Debian Buster How can I split each PDF page into two pages, using the command line? gpg: error retrieving '[email protected]' via WKD Bash if command doesn't finish in X time? Bash RANDOM with seed? Is there a home directory location for overriding icons? Any occasion where .bashrc is favorable to .bash_profile? How to run ssh command until succeeded?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy