#1
Which of the following commands is used to change the ownership of a file in Linux?
#2
What does the acronym 'SSH' stand for in Linux?
Secure Socket Host
Secure Shell
System Security Handler
System Status Hub
#3
Which command is used to display the current date and time in Linux?
#4
What is the purpose of the 'passwd' command in Linux?
To display the current user's password
To change a user's password
To list all the users on the system
To shut down the system
#5
Which command is used to find files in Linux based on various criteria such as name, size, or permissions?
#6
What does the 'cron' service do in Linux?
Manages user accounts
Manages system logs
Schedules recurring tasks
Configures network settings
#7
Which command is used to display the contents of a file in Linux?
#8
What does the command 'grep' do in Linux?
Prints the current user's shell
Searches for patterns in text files
Creates a new directory
Lists all running processes
#9
Which command is used to create a new directory in Linux?
#10
What does the command 'pwd' do in Linux?
Prints the current date and time
Prints the current working directory
Prints the list of available users
Prints the system's hostname
#11
Which of the following is a correct statement regarding 'sudo' in Linux?
It is used to list all the files in a directory
It is used to change file permissions
It is used to execute a command with elevated privileges
It is used to uninstall software packages
#12
What is the purpose of the 'iptables' command in Linux?
To manage user accounts
To configure network firewall rules
To install software packages
To create new directories
#13
Which file contains user-specific shell initialization commands in Linux?
.bashrc
.profile
.bash_profile
.bash_init
#14
What is the purpose of the 'umask' command in Linux?
To set the priority of a process
To display memory usage
To configure default file permissions
To list all running processes
#15
Which command is used to compress files in Linux?
#16
What does the command 'chroot' do in Linux?
Changes the system time
Changes the root directory for a process
Changes file permissions
Changes the shell prompt
#17
Which command is used to view the system's hostname in Linux?
#18
Which file contains the system-wide shell initialization commands in Linux?
/etc/bashrc
/etc/profile
/etc/bash_profile
/etc/shell_init
#19
What is SELinux ('Security-Enhanced Linux')?
A kernel patch
A Linux distribution
A mandatory access control mechanism
A desktop environment
#20
What does the command 'ls -l' display in Linux?
A long listing format of files and directories
Only directories
Only hidden files
File permissions in octal format
#21
What is the purpose of the 'auditd' service in Linux?
Monitors user activity and system events
Manages network interfaces
Handles system backups
Manages software updates