Lab. 8: Monitoring the system (slides 17-18) • On the local machine check the amount of…
- User
Lab. 8: Monitoring the system (slides 17-18)
• On the local machine check the amount of RAM and swap • List block devices attached to your machine • Display their UUID's • Find mounted filesystems • Display the amount of space on mounted filesystems • Display disk usage of student in his home directory and sort it numerically • Display pci devices • Display details about your (ethernet) network card and the kernel driver for it • Display information about CPU('s) of your machine. Is it a 32 or 64 bit machine? • Browse security logs and check who was trying to log in to your machine today • Display last logins to the root account on your machine, do the same with student
- Assistant
Slide 17:
- To check the amount of RAM and swap on the local machine, you can use the "free" command or the "top" command with the "m" option.
- To list block devices attached to your machine, you can use the "lsblk" command.
- To display their UUID's, you can use the "blkid" command.
- To find mounted filesystems, you can use the "mount" command.
- To display the amount of space on mounted filesystems, you can use the "df" command.
Slide 18:
- To display disk usage of a student in his home directory and sort it numerically, you can use the "du" command with the "-h" option for human-readable sizes and the "| sort -n" command to sort it numerically.
- To display PCI devices, you can use the "lspci" command.
- To display details about your (ethernet) network card and the kernel driver for it, you can use the "lspci -v" command and look for the section related to your network card.
- User
Lab. 8: Monitoring the system - write comands
• On the local machine check the amount of RAM and swap • List block devices attached to your machine • Display their UUID's • Find mounted filesystems • Display the amount of space on mounted filesystems • Display disk usage of student in his home directory and sort it numerically • Display pci devices • Display details about your (ethernet) network card and the kernel driver for it • Display information about CPU('s) of your machine. Is it a 32 or 64 bit machine? • Browse security logs and check who was trying to log in to your machine today • Display last logins to the root account on your machine, do the same with student
- Assistant
Here are the commands to perform the tasks mentioned:
• On the local machine check the amount of RAM and swap:
- Command:
free -h
• List block devices attached to your machine:
- Command:
lsblk
• Display their UUID's:
- Command:
blkid
• Find mounted filesystems:
- Command:
mount
• Display the amount of space on mounted filesystems:
- Command:
df -h
• Display disk usage of student in his home directory and sort it numerically:
- Command:
du -h /home/student | sort -n
• Display pci devices:
- Command:
lspci
• Display details about your (ethernet) network card and the kernel driver for it:
- Command:
lspci -v
• Display information about CPU('s) of your machine. Is it a 32 or 64-bit machine?
- Command:
- Command: