Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

find ubuntu usb port tty

#!/bin/bash

for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
    (
        syspath="${sysdevpath%/dev}"
        devname="$(udevadm info -q name -p $syspath)"
        [[ "$devname" == "bus/"* ]] && exit
        eval "$(udevadm info -q property --export -p $syspath)"
        [[ -z "$ID_SERIAL" ]] && exit
        echo "/dev/$devname - $ID_SERIAL"
    )
done
Comment

PREVIOUS NEXT
Code Example
Shell :: Redirect output from within the shell script 
Shell :: open command linux 
Shell :: docker compose recreate 
Shell :: how to check linux is ubuntu or centos 
Shell :: homebrew tomcat 
Shell :: git alias variables 
Shell :: kill process by name 
Shell :: generate zip file terminal 
Shell :: how to restore a non booting grub bootloader 
Shell :: how to scp 
Shell :: git merge to master 
Shell :: wget - 
Shell :: remove commit from PR 
Shell :: poetry reinstall venv 
Shell :: sed replace with variable 
Shell :: add unity project to github 
Shell :: mac terminal wifi commands 
Shell :: docker gpio 
Shell :: online centos terminal 
Shell :: how to use yes command in linux 
Shell :: or create a new repository on the command line 
Shell :: install tainwind on laravel 
Shell :: expose deployment k8 
Shell :: easy disk cleaner 
Shell :: how to shutdown system immediately with shutdown command 
Shell :: scp command in unix 
Shell :: open command in linux 
Shell :: git commands cheat sheet 
Shell :: removing package using snap 
Shell :: bash delete a command line 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =