title: how to write a program to scan for the connected USB and show them in terminal
body: <p>I was just wondering that if this possible to write a program in c in linux  to scan for the usb connected to the system and show them in terminal. </p>
  
  <p>I have a good hand in shell scripting but dont know how to this in C program. In shell scripting, we can use echo command to do many functions but what is the replacement of echo in C language. </p>
  
  <p>Any guide or a sample code will help, thanks.!</p>