To execute a script in Bash, you often need to make it executable and then use the ________ symbol before the script name.

  • ./
  • &
  • ~
  • $
To execute a script in Bash, you often need to make it executable by running chmod +x script_name, and then you use the ./ symbol before the script name to specify the current directory. This tells the shell to execute the script from the current directory.

Which command is used to view the list of scheduled tasks for the system?

  • cronlist
  • crontab -l
  • schedulelist
  • tasks
The command "crontab -l" is used to view the list of scheduled tasks (cron jobs) for the system. It lists the cron entries for the currently logged-in user. Scheduled tasks are used to automate various processes at specific times or intervals in a Linux system.

To restrict users from logging in via SSH, you would modify the ________ file.

  • /etc/ssh/sshd_config
  • /etc/ssh/ssh_config
  • /etc/sshd/ssh_config
  • /etc/ssh/sshd
To restrict users from logging in via SSH, you would modify the /etc/ssh/sshd_config file. This file contains configuration options for the SSH server, and you can specify access restrictions and settings here.

Which tool enforces mandatory access controls at the kernel level in Linux?

  • SELinux
  • AppArmor
  • UAC
  • sudo
SELinux (Security-Enhanced Linux) enforces mandatory access controls at the kernel level in Linux. It provides a powerful and flexible security framework that allows administrators to define fine-grained access policies for processes, files, and resources on a system.

The ___________ distribution is known for its advanced package management system called "pacman."

  • Arch
  • CentOS
  • Fedora
  • Ubuntu
The Arch distribution is known for its advanced package management system called "pacman." Arch Linux uses a rolling release model and the pacman package manager for installing, updating, and managing software packages.

What is the primary protocol used by NFS for sharing files?

  • NFS
  • SMB
  • HTTP
  • FTP
The primary protocol used by NFS (Network File System) for sharing files is NFS itself. NFS is a network protocol specifically designed for sharing files and directories among networked computers. It is commonly used in Unix and Linux environments.

Which of the following is a valid way to declare a variable in Bash?

  • myVar=42
  • $myVar = 42
  • var myVar = 42
  • set myVar 42
A valid way to declare a variable in Bash is by using the format 'myVar=42'. This assigns the value 42 to the variable 'myVar'. The '$' symbol is used to reference the variable.

SELinux operates under what primary modes?

  • Enforcing and Permissive
  • Passive and Active
  • Standard and Enhanced
  • Basic and Advanced
SELinux operates under two primary modes: Enforcing and Permissive. In Enforcing mode, SELinux actively enforces security policies and denies any actions that violate these policies. In Permissive mode, SELinux logs policy violations but doesn't actively deny them, making it a useful mode for policy debugging.

Which file defines the default settings when a new user account is created?

  • /etc/default/user.conf
  • /etc/useradd.conf
  • /etc/default/useradd
  • /etc/login.defs
The file that defines the default settings when a new user account is created in Linux is /etc/login.defs. This file contains various parameters and settings related to user account creation, password policies, and more. Modifying this file can affect the behavior of the useradd and adduser commands.

During the Linux boot process, which script initializes the system settings?

  • init
  • rc.local
  • init.d
  • systemd
During the Linux boot process, systemd initializes system settings. Systemd is a modern init system and service manager that has become the standard in many Linux distributions. It manages the startup and control of system services and settings, replacing the older init system.