How to find the Absolute device name

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I had a homework question which I answered correctly:




Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?




The next question said:




Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the absolute device name which this link is pointing to?




How do you find the Absolute device name on Linux?



All I got was this on Google:




  • ls - list files in the file system.


  • lsblk - list the block devices (i.e. drives)


  • lspci - list the pci devices.


  • lsusb - list the USB devices.


  • lsdev - list all the devices.









share|improve this question









New contributor




Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1




    What is an "Absolute device name"?
    – DopeGhoti
    6 hours ago










  • @DopeGhoti I don't know what the homework question means by that as well any helps?
    – Hunter12345
    6 hours ago














up vote
0
down vote

favorite












I had a homework question which I answered correctly:




Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?




The next question said:




Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the absolute device name which this link is pointing to?




How do you find the Absolute device name on Linux?



All I got was this on Google:




  • ls - list files in the file system.


  • lsblk - list the block devices (i.e. drives)


  • lspci - list the pci devices.


  • lsusb - list the USB devices.


  • lsdev - list all the devices.









share|improve this question









New contributor




Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1




    What is an "Absolute device name"?
    – DopeGhoti
    6 hours ago










  • @DopeGhoti I don't know what the homework question means by that as well any helps?
    – Hunter12345
    6 hours ago












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I had a homework question which I answered correctly:




Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?




The next question said:




Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the absolute device name which this link is pointing to?




How do you find the Absolute device name on Linux?



All I got was this on Google:




  • ls - list files in the file system.


  • lsblk - list the block devices (i.e. drives)


  • lspci - list the pci devices.


  • lsusb - list the USB devices.


  • lsdev - list all the devices.









share|improve this question









New contributor




Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I had a homework question which I answered correctly:




Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?




The next question said:




Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the absolute device name which this link is pointing to?




How do you find the Absolute device name on Linux?



All I got was this on Google:




  • ls - list files in the file system.


  • lsblk - list the block devices (i.e. drives)


  • lspci - list the pci devices.


  • lsusb - list the USB devices.


  • lsdev - list all the devices.






linux devices






share|improve this question









New contributor




Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 52 secs ago









JdeBP

30.1k462138




30.1k462138






New contributor




Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 6 hours ago









Hunter12345

145




145




New contributor




Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Hunter12345 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1




    What is an "Absolute device name"?
    – DopeGhoti
    6 hours ago










  • @DopeGhoti I don't know what the homework question means by that as well any helps?
    – Hunter12345
    6 hours ago












  • 1




    What is an "Absolute device name"?
    – DopeGhoti
    6 hours ago










  • @DopeGhoti I don't know what the homework question means by that as well any helps?
    – Hunter12345
    6 hours ago







1




1




What is an "Absolute device name"?
– DopeGhoti
6 hours ago




What is an "Absolute device name"?
– DopeGhoti
6 hours ago












@DopeGhoti I don't know what the homework question means by that as well any helps?
– Hunter12345
6 hours ago




@DopeGhoti I don't know what the homework question means by that as well any helps?
– Hunter12345
6 hours ago










2 Answers
2






active

oldest

votes

















up vote
0
down vote













it depends on what kind of device you are looking for. for example for network devices you can search through /etc/network or /etc/sysconfig/network or if you want your system information you can search through /sys/class. for HDD information search through /dev. these kind of files in linux contains really useful information. as i said before , depend of what kind of device you are looking for, you can find all information you need.






share|improve this answer








New contributor




BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote













    You have to list the device itself, for example:



    ls -l /dev/cdrom
    lrwxrwxrwx 1 root root 3 Oct 5 11:12 /dev/cdrom -> sr0


    The name after -> represent the absolute device name






    share|improve this answer




















    • Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc.
      – Doug O'Neal
      6 hours ago










    • Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?
      – Hunter12345
      6 hours ago










    • @DougO'Neal you have to list a mounted device. Tty is not an actual device!
      – Goro
      6 hours ago










    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Hunter12345 is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474581%2fhow-to-find-the-absolute-device-name%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    it depends on what kind of device you are looking for. for example for network devices you can search through /etc/network or /etc/sysconfig/network or if you want your system information you can search through /sys/class. for HDD information search through /dev. these kind of files in linux contains really useful information. as i said before , depend of what kind of device you are looking for, you can find all information you need.






    share|improve this answer








    New contributor




    BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote













      it depends on what kind of device you are looking for. for example for network devices you can search through /etc/network or /etc/sysconfig/network or if you want your system information you can search through /sys/class. for HDD information search through /dev. these kind of files in linux contains really useful information. as i said before , depend of what kind of device you are looking for, you can find all information you need.






      share|improve this answer








      New contributor




      BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        0
        down vote










        up vote
        0
        down vote









        it depends on what kind of device you are looking for. for example for network devices you can search through /etc/network or /etc/sysconfig/network or if you want your system information you can search through /sys/class. for HDD information search through /dev. these kind of files in linux contains really useful information. as i said before , depend of what kind of device you are looking for, you can find all information you need.






        share|improve this answer








        New contributor




        BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        it depends on what kind of device you are looking for. for example for network devices you can search through /etc/network or /etc/sysconfig/network or if you want your system information you can search through /sys/class. for HDD information search through /dev. these kind of files in linux contains really useful information. as i said before , depend of what kind of device you are looking for, you can find all information you need.







        share|improve this answer








        New contributor




        BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 6 hours ago









        BlackCrystal

        135




        135




        New contributor




        BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        BlackCrystal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






















            up vote
            0
            down vote













            You have to list the device itself, for example:



            ls -l /dev/cdrom
            lrwxrwxrwx 1 root root 3 Oct 5 11:12 /dev/cdrom -> sr0


            The name after -> represent the absolute device name






            share|improve this answer




















            • Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc.
              – Doug O'Neal
              6 hours ago










            • Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?
              – Hunter12345
              6 hours ago










            • @DougO'Neal you have to list a mounted device. Tty is not an actual device!
              – Goro
              6 hours ago














            up vote
            0
            down vote













            You have to list the device itself, for example:



            ls -l /dev/cdrom
            lrwxrwxrwx 1 root root 3 Oct 5 11:12 /dev/cdrom -> sr0


            The name after -> represent the absolute device name






            share|improve this answer




















            • Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc.
              – Doug O'Neal
              6 hours ago










            • Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?
              – Hunter12345
              6 hours ago










            • @DougO'Neal you have to list a mounted device. Tty is not an actual device!
              – Goro
              6 hours ago












            up vote
            0
            down vote










            up vote
            0
            down vote









            You have to list the device itself, for example:



            ls -l /dev/cdrom
            lrwxrwxrwx 1 root root 3 Oct 5 11:12 /dev/cdrom -> sr0


            The name after -> represent the absolute device name






            share|improve this answer












            You have to list the device itself, for example:



            ls -l /dev/cdrom
            lrwxrwxrwx 1 root root 3 Oct 5 11:12 /dev/cdrom -> sr0


            The name after -> represent the absolute device name







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 6 hours ago









            Goro

            8,25854282




            8,25854282











            • Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc.
              – Doug O'Neal
              6 hours ago










            • Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?
              – Hunter12345
              6 hours ago










            • @DougO'Neal you have to list a mounted device. Tty is not an actual device!
              – Goro
              6 hours ago
















            • Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc.
              – Doug O'Neal
              6 hours ago










            • Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?
              – Hunter12345
              6 hours ago










            • @DougO'Neal you have to list a mounted device. Tty is not an actual device!
              – Goro
              6 hours ago















            Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc.
            – Doug O'Neal
            6 hours ago




            Works in this case but doesn't work for many devices. /dev/dm-0 and /dev/st* come to mind immediately. Do I actually have a serial device hooked to /dev/ttyS0? etc.
            – Doug O'Neal
            6 hours ago












            Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?
            – Hunter12345
            6 hours ago




            Didn't worked. The question says Using the path discovered in the previous question, look at this path in the /dev directory using a long listing ls command. Assuming this is in fact a soft link, what is the ABSOLUTE device name which this link is pointing to? The previous question that I answered correctly was Use lvdisplay to discover information about the VG Name found in the previous question. What is the first LV Path which is using the volume group discovered in the previous question?
            – Hunter12345
            6 hours ago












            @DougO'Neal you have to list a mounted device. Tty is not an actual device!
            – Goro
            6 hours ago




            @DougO'Neal you have to list a mounted device. Tty is not an actual device!
            – Goro
            6 hours ago










            Hunter12345 is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            Hunter12345 is a new contributor. Be nice, and check out our Code of Conduct.












            Hunter12345 is a new contributor. Be nice, and check out our Code of Conduct.











            Hunter12345 is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474581%2fhow-to-find-the-absolute-device-name%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?