- Home
- Interview Questions
- Linux Server Administrator
36.
You want to force the user john to change his password after 90 days, how can you do that?
The chage tool allows you to force a user to change his password after X days - chage -M 90 john
37.
How can you list all of the USB buses and devices that are connected?
You can run the command "lsusb" which will give you the bus information and who is using it.
38.
Your hardware clock and your system clock are not the same, how can you sync between your system clock and the
hardware clock?
The hardware clock can be reached by the hwclock and in order to sync them you can use the command hwclock --systohc to copy the system to hw to hwclock --hctosys to copy the hw to system.
39.
How can you check the status of bad blocks on your hard drive?
The badblocks application gives you information about the HD bad blocks - badblocks -s /dev/sda
40.
How do you show all the current mounts and their stats?
Using the command df -ah you can get information about your current mounts including available/used spacel