Last Updated on March 21, 2022 by Admin 2

LFCS : Linux Foundation Certified System Administrator : Part 11

  1. After running the command umount /mnt, the following error message is displayed:

    umount: /mnt: device is busy.

    What is a common reason for this message?

    • The kernel has not finished flushing disk writes to the mounted device.
    • A user has a file open in the /mnt directory.
    • Another file system still contains a symlink to a file inside /mnt.
    • The files in /mnt have been scanned and added to the locate database.
    • The kernel thinks that a process is about to open a file in /mnt for reading.
  2. What is the purpose of the Filesystem Hierarchy Standard?

    • It is a security model used to ensure files are organized according to their permissions and accessibility.
    • It provides unified tools to create, maintain and manage multiple filesystems in a common way.
    • It defines a common internal structure of inodes for all compliant filesystems.
    • It is a distribution neutral description of locations of files and directories.

    Which umask value will result in the default access permissions of 600 (rw——-) for files and 700 (rwx——) for directories? (Specify only the numerical umask value.)

    • 0077, 077
  4. Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

    • tune2fs -d 200 /dev/sda1
    • tune2fs -c 200 /dev/sda1
    • tune2fs -i 200 /dev/sda1
    • tune2fs -n 200 /dev/sda1
    • tune2fs –days 200 /dev/sda1
  5. Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

    • ext2
    • ext3
    • ext4
    • XFS
    • VFAT
  6. In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

    • cat /proc/self/mounts
    • free
    • mount
    • lsmounts
    • cat /proc/filesystems
  7. Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

    • dirname
    • which
    • basename
    • query
    • whereis
  8. Which of the following file permissions belong to a symbolic link?

    • -rwxrwxrwx
    • +rwxrwxrwx
    • lrwxrwxrwx
    • srwxrwxrwx
  9. Creating a hard link to an ordinary file returns an error. What could be the reason for this?

    • The source file is hidden.
    • The source file is read-only.
    • The source file is a shell script.
    • The source file is already a hard link.
    • The source and the target are on different filesystems.
  10. How many fields are in a syntactically correct line of /etc/fstab?

    • 3
    • 4
    • 5
    • 6
    • 7

    Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

    • quotacheck
  12. What output will the command seq 10 produce?

    • A continuous stream of numbers increasing in increments of 10 until stopped.
    • The numbers 1 through 10 with one number per line.
    • The numbers 0 through 9 with one number per line.
    • The number 10 to standard output.

    By default, the contents of which directory will be copied to a new user’s home directory when the account is created by passing the -m option to the user add command? (Specify the full path to the directory.)

    • /etc/skel

    What word is missing from the following SQL statement?
    insert into tablename ________(909, ‘text’);
    (Please specify the missing word using lower-case letters only.)

    • VALUES
    • values
  15. Which command makes the shell variable named VARIABLE visible to subshells?

    • export $VARIABLE
    • export VARIABLE
    • set $VARIABLE
    • set VARIABLE
    • env VARIABLE
  16. Which of the following commands puts the output of the command date into the shell variable mydate?

    • mydate=”$(date)”
    • mydate=”exec date”
    • mydate=”$((date))”
    • mydate=”date”
    • mydate=”${date}”
  17. Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

    • ~/.bashconf
    • ~/.bashrc
    • ~/.bashdefaults
    • ~/.bash_etc
    • ~/.bash_profile
    What word is missing from the following SQL statement?
    __________ count(*) from tablename;
    (Please specify the missing word using lower-case letters only.)

    • select
  19. After issuing:
    function myfunction { echo $1 $2 ; }
    in Bash, which output does:
    myfunction A B C

    • A B
    • A B C
    • A C
    • B C
    • C B A
  20. Which of the following commands can be used to display the inode number of a given file?

    • inode
    • ls
    • ln
    • cp