Monday, August 4, 2014

[Solved] Linux Programming Challenge : 001

Fancy your Linux Programming skills ? Take this challenge and answer these simple 5 questions related to Linux System and Linux Programming.

Update : Solutions added



  1. If getppid() returns the parent process id, what does getepid() return ?
      • Effective user id

  2. Which daemon is used to update log files on a Linux system ?
      • syslogd

  3. Which is the only directory [ filesystem ] on a Linux machine that does not exist on the hard disk ?
      • The proc filesystem that resides at /proc

  4. Will a hardlink have an inode number different from the inode of the file it links to ? Or is this the case with a soft link ?
      • Hardlink and the file it links to use the same inode number
      • Softlink and the file it links to use different inode numbers

  5. What is the default file permission of all newly created files when the umask is 0755 ?
      • 022 [ only group users and others can write to this file !!! ]

No comments:

Post a Comment