Wednesday, 8 July 2015

PR(02) : Write the function to display the list of devices connected to your system, Including physical names & instance no.

Date of Performance : 08/07/2015
Date of Checking : 09/07/2015

*******************************************************************************************

while true
do
echo "1.Display the info of devices";
echo "2.Display the info of usb";
echo "3.Display the info of cpu";
echo "4.Display the info of disk";
echo "5.Exit";
read ch;
case $ch in
1)
show_dev
{
lspci -k
}
;;
2)
show_usb
{
lsusb
}
;;
3)
show_cpu
{
lscpu
}
;;
4)
show_disk
{
df
}
;;
5)
exit;
;;
esac
done

No comments:

Post a Comment