Simple FreeBSD questions

Category: Unix/Linux Questions    |    4 views
  1. What’s in the file /etc/ttys? - Configuration for virtual consoles for the startup. By default FreeBSD has 8 virtual consoles.
  2. You’re told that the permissions of a file are 645. Quick, how do you calculate what it means? - The permissions value are always 4 for read, 2 for write, 1 for execute. The three numbers are always for owner, group, and everybody on the system. Therefore 645 means: owner - read and write, group - read only, everybody - read and execute. You’ll rarely see such a permission set, but for interview question it might just work.
  3. Explain the difference between SIGTERM and SIGKILL. SIGTERM asks the application to terminate in a polite way, it warns about the pending closure and asks the app to finish whatever it is doing. SIGKILL will kill the process no matter what. This is telling the application that it will be shut down no matter what.
  4. Explain the difference between SIGHUP, SIGUSR1 and SIGUSR2. Those are application specific and therefore are not defined on the OS level.
  5. How do you change your shell to bash?
    % chsh -s /usr/local/bin/bash

Share/Save/Bookmark

1 Star2 Stars
Loading ... Loading ...

0 responses so far!

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word