Introduction Linux Training Program - Questions AWS
Introduction Linux Training Program - Questions AWS
Topics covered :-
Introduction
Introduction to data center
Future Scope of DC
Data center tiers
What are some critical roles that Linux plays in a data center environment?
Which of the following is a common use case for Linux in data centers?
Which Linux command is used to view system resource usage and running processes?
● A) mkdir
● B) ps
● C) top
● D) ping
Correct Answer: C) top
Which data center tier offers the highest availability and redundancy?
● A) Tier 1
● B) Tier 2
● C) Tier 3
● D) Tier 4
Correct Answer: D) Tier 4
Day 2 - Linux Training Program Topics covered ➖ Indroduction to linux All Linux
commands Linux permission Compress And Decompress Files
Which command is used to view the contents of a text file page by page in Linux?
● A) cat
● B) more
● C) head
● D) ls
Correct Answer: B) more
● A) df -h
● B) du -h
● C) ls -lh
● D) size -d
Correct Answer: B) du -h
● A) chmod
● B) chgrp
● C) chown
● D) chperm
Correct Answer: C) chown
● A) zip
● B) tar -cvf
● C) compress
● D) archive
Correct Answer: B) tar -cvf
Topics coverded -
Archive files and directories part 1
Archive files and directories part 2
Linux Boot Process
Linux boot process - (systemD process)
What is the primary function of the BIOS/UEFI stage in the Linux boot process?
● A) Networking setup
● B) Hardware configuration
● C) Service management and system initialization
● D) User authentication
Correct Answer: C) Service management and system initialization
● A) init
● B) systemctl
● C) service
● D) systemd-status
Correct Answer: B) systemctl
During the Linux boot process, which component is responsible for loading the kernel
into memory?
● A) GRUB
● B) BIOS/UEFI
● C) SystemD
● D) Init
Correct Answer: A) GRUB
Which command would you use to create a compressed archive with tar that uses gzip
compression?
How do you list all SystemD services currently running on the system?
● A) systemctl list-active
● B) systemctl list-units --type=service
● C) service --list-all
● D) ps aux --services
Correct Answer: B) systemctl list-units --type=service
● A) unzip filename.tar.bz2
● B) tar -xvf filename.tar.bz2
● C) tar -xjf filename.tar.bz2
● D) gunzip filename.tar.bz2
Correct Answer: C) tar -xjf filename.tar.bz2
Which command would you use to enable a SystemD service to start automatically on
boot?
TOPICS COVERED:-
Linux filesystems
Linux logs explained
Linux kernel
Linux networking files
What is the main responsibility of the Linux kernel in the operating system?
Which of the following commands is used to monitor real-time changes in log files?
● A) cat
● B) less
● C) tail -f
● D) head
Correct Answer: C) tail -f
What command can you use to display kernel messages specifically related to hardware
and system events?
● A) syslog
● B) dmesg
● C) kernlog
● D) logwatch
Correct Answer: B) dmesg
● A) /usr/logs
● B) /etc/logs
● C) /var/log
● D) /home/logs
Correct Answer: C) /var/log
What is the default filesystem type used in most modern Linux distributions?
● A) ext4
● B) NTFS
● C) FAT32
● D) ZFS
Correct Answer: A) ext4
In a Linux system, which command would you use to check the current filesystem usage
and available space?
● A) ls
● B) du
● C) df -h
● D) top
Correct Answer: C) df -h
What command shows network interfaces and their configurations in most Linux
distributions?
● A) ifconfig
● B) ip a
● C) netstat
● D) networkctl
Correct Answer: B) ip a
In a Debian-based Linux system, where would you find the network interface
configuration file?
● A) /etc/sysconfig/network-scripts/
● B) /etc/hosts
● C) /etc/network/interfaces
● D) /var/network/interfaces
Correct Answer: C) /etc/network/interfaces
Topics Covered:
1. Which command displays both IPv4 and IPv6 address configurations for
network interfaces in Linux?
○ A) ifconfig
○ B) ip a
○ C) netstat -i
○ D) ipconfig
Correct Answer: B) ip a
2. In a shell script, which symbol is used to execute a command only if the
previous command succeeds?
○ A) ;
○ B) &&
○ C) ||
○ D) |
Correct Answer: B) &&
3. Which command is used to make a file executable and runnable as a script?
○ A) chmod +r
○ B) chmod +w
○ C) chmod +x
○ D) chmod +s
Correct Answer: C) chmod +x
4. What is the function of the ping command in Linux?
○ A) Tests disk integrity
○ B) Tests network connectivity to a host
○ C) Measures CPU load
○ D) Lists all active processes
Correct Answer: B) Tests network connectivity to a host
5. Which command would you use to list scheduled cron jobs for a specific user?
○ A) cron -l
○ B) cronjob -u
○ C) crontab -u <username> -l
○ D) listcron
Correct Answer: C) crontab -u <username> -l
6. What is the purpose of the netstat command in Linux?
○ A) Displays information about current memory usage
○ B) Monitors and displays information about network connections
○ C) Lists all directories in the current folder
○ D) Shows CPU load
Correct Answer: B) Monitors and displays information about network
connections
7. What does setting an ACL on a file or directory in Linux allow you to do?
○ A) Set permissions for only the owner and group
○ B) Set detailed permissions for specific users or groups
○ C) Encrypt the file
○ D) Change ownership of the file
Correct Answer: B) Set detailed permissions for specific users or groups
8. What symbol in a crontab entry represents “every”?
○ A) ?
○ B) *
○ C) /
○ D) +
Correct Answer: B) *
9. What does ls -l display in a Linux terminal?
○ A) Lists only directories
○ B) Shows file details, including permissions, owner, size, and
modification date
○ C) Lists hidden files only
○ D) Lists all files in alphabetical order
Correct Answer: B) Shows file details, including permissions, owner, size,
and modification date
Topics Covered:
● Vi Editor
● Linux Swap Management
● Logical Volume Management (LVM)
● Kickstart
● PXE Booting, NFS, FTP, and Filesystem Hierarchy
Topics Covered:
MCQ Questions:
Topics Covered:
MCQ Questions:
Topics Covered:
MCQs:
Topics Covered:
MCQs:
Topics Covered:
MCQs:
Topics Covered:
MCQs: