Home
51.
How can you prioritize system resources per running process?

The system allocate and prioritize resources for processes on the system using nice levels, and in order to change the nice of a specific process, you need to run renice level <process id>

52.
How can you get the NS records of the domain "google.com" from the terminal command line?

The command dig allows you to get specific domain information, such as A, AAAA, NS, etc' records - you can use dig google.com NS.

53.
You are running a tail -f on /var/log/messages file and looking for specific error, you want only the log that you saw to be printed into a local file "found.log" in order to search it later on a smaller file, how can you do it?

The tee command allows you to save data from the standard I/O to a file, you can use it as tail -f /var/log/messages | tee found.log and it will save you only the data that you saw on the tail.

54.
How do you check all the services that start/stop on each runlevel?

In order to check the runlevel services information for the run levels you need to use the chkconfig: chkconfig –list.

55.
How can you allow a user to run superuser commands without knowing the root password?

If you want to allow a user to run superuser commands without having superuser (or root) access, you can add him specific (or all) access using sudoers file.