- Home
- Interview Questions
- Linux Server Administrator
11.
How can we find which of the users (residing in /home/) are using the most HD space?
We should use the du tool to get the HD usage and find the most heavy directories - du -hs /home/* | sort -nr | head -10.
12.
How can we change your server timezone to a Europe/France timezone?
We need to link the file /usr/share/zoneinfo/Europe/Paris to /etc/localtime.
13.
How do you change the user tom's login shell to /bin/sh?
You need to use the command chsh -s /bin/sh tom.
14.
What is the difference between "kill <PID>" and "kill -9 <PID>"?
When adding "-9" to the kill command, it tells the PID to exit immediately instead of exiting in the correct way - cleaning children/temp/sockets.
15.
How do you add a virtual network interface on eth0 with the ip 10.10.10.1 on class C?
You can add virtual interfaces on eth cards that will hold additional system IPs - ifconfig eth0:0 10.10.10.1 netmask 255.255.255.0.