Tuesday, October 29, 2019

lsvideo - List Video Card/Driver Info

alias lsvideo='sudo $(type -P lspci) -vvvv -d "$($(type -P lspci) -nn|sed -n "/VGA/p"|$(type -P grep) -oP "(?<=\[)[[:alnum:]]{4}:[[:alnum:]]{4}(?=\])")"' 
Get the Latest onGitHub.

1 comment:

  1. This could be more efficiently written as:

    lspci -vvvv | sed -n '/ VGA /,/^$/p'

    ReplyDelete