Q1
Q1 What type of operating system is Unix?
Single-user
Multi-user
Graphical
Non-interactive
Q2
Q2 What is the command used to display the contents of a file in Unix?
cat
ls
echo
pwd
Q3
Q3 Which component of Unix interacts directly with the hardware?
Kernel
Shell
User
File system
Q4
Q4 What does the command pwd do in Unix?
Prints the working directory
Changes directory
Lists files
Exits the shell
Q5
Q5 Which part of Unix provides the interface for user commands?
Kernel
Shell
Daemon
File system
Q6
Q6 What is the purpose of the Unix man command?
To list files
To change directories
To display manual pages
To run background processes
Q7
Q7 How does Unix handle multitasking?
Through a single queue
By scheduling multiple processes
Only by shell commands
Through a graphical interface
Q8
Q8 What is a major advantage of Unix's modular architecture?
Faster response time
Easier upgrades and flexibility
Single-user access
Reduced file size
Q9
Q9 Which command in Unix shows the absolute path of the current directory?
dir
pwd
ls
find
Q10
Q10 A user sees "Command not found" when running a command. What is a likely cause?
Command permissions
Path not set for the command
File permissions issue
Invalid shell
Q11
Q11 What is the role of the Unix kernel?
Provides user interface
Manages hardware and resources
Handles text editing
Organizes files
Q12
Q12 Which layer in Unix allows users to communicate with the kernel?
Shell
Kernel
File system
User layer
Q13
Q13 What does the ls command do in Unix?
Lists files and directories
Prints working directory
Changes directory
Deletes files
Q14
Q14 Which command displays all currently running processes in Unix?
ps
kill
run
pwd
Q15
Q15 How is the Unix shell different from the kernel?
Kernel is a command interpreter
Shell manages hardware
Shell interprets commands
Kernel manages user input
Q16
Q16 Which of the following is not a type of Unix shell?
Bourne Shell
C Shell
Graphical Shell
Korn Shell
Q17
Q17 What is the purpose of the pipe (|) operator in Unix?
Combines two files
Links commands together
Filters directories
Lists all processes
Q18
Q18 How would you display the current date in Unix?
date
time
today
now
Q19
Q19 How do you display a list of files in the current directory with detailed information?
ls
ls -l
ls -a
ls -h
Q20
Q20 A user tries to execute a command but receives a "Permission denied" error. What could be a likely solution?
Re-run the command with sudo
Close all files
Change directory
Run pwd
Q21
Q21 A command is not recognized in Unix. Which variable should you check?
$USER
$SHELL
$HOME
$PATH
Q22
Q22 What is the root directory in Unix?
The home directory
The top-level directory
A temporary directory
The current directory
Q23
Q23 Which command lists all files and directories, including hidden ones, in Unix?
ls
ls -a
dir
pwd
Q24
Q24 What does the permission rwx mean for a file in Unix?
Read only
Write only
Read, write, and execute
Execute only
Q25
Q25 Which command displays the file permissions in Unix?
chmod
ls -l
pwd
cp
Q26
Q26 How does Unix differentiate between files and directories?
Based on file size
Through permissions
Using the inode structure
Using file extensions
Q27
Q27 Which command changes the owner of a file in Unix?
chown
chmod
ls
cp
Q28
Q28 How do you remove a directory in Unix?
rm
rmdir
delete
remove
Q29
Q29 Which command is used to copy files in Unix?
cp
mv
copy
cpdir
Q30
Q30 How would you modify a file's permissions to rwxr-xr--?
chmod 755 filename
chmod 764 filename
chmod 744 filename
chmod 654 filename