How can I block devices by the most recent added ones?
No option in
lsblk seems to have that functionality.
One way to do it is using the
ls command, because Linux block devices actually have a working time metadata:
ls -lt /dev/ |grep "^b"| more
For plain device names:
ls -t1 /dev/ | more
ls -lt /dev/ |grep "^b" |sed -r "s/^.* (.*)$/\1/g" | more.
Another possible method:
lsblk -p -d --output name |tail.
You might want to use
lsblk -p -d --output name /dev/sd? | tail.