Site icon i2tutorials

Ubuntu Troubleshooting – Quiz

This Quiz contains totally 25 Questions each carry 1 point for you.

1.Which command can be used to check the current system load average?
top
uptime
ps
netstat

Correct!

Wrong!

2.Which log file stores information about system-level events in Linux?
/var/log/messages
/var/log/syslog
/var/log/auth.log
/var/log/kernel.log

Correct!

Wrong!

3.What is the purpose of using the "tar" command?
To create compressed archive files
To extract files from a compressed archive
To list the contents of a compressed archive
To view the detailed information of a compressed archive

Correct!

Wrong!

4.Which option is used with the "tar" command to create a compressed archive using gzip?
-z
-c
-x
-v

Correct!

Wrong!

5.Which command is used to compress a file using gzip without creating an archive?
gzip file.txt
tar -czf file.txt
gzip -c file.txt > file.txt.gz
tar -czvf file.txt.gz file.txt

Correct!

Wrong!

6.Which command can be used to synchronize the contents of two directories efficiently?
rsync
scp
cp
mv

Correct!

Wrong!

7.Which option is used with the "rsync" command to preserve file permissions and ownership during synchronization?
-a
-r
-l
-p

Correct!

Wrong!

8.Which log file provides information about user authentication events in Linux?
/var/log/auth.log
/var/log/syslog
/var/log/messages
/var/log/secure

Correct!

Wrong!

9.How can you check the available disk space on a Linux system?
df
du
ls
free

Correct!

Wrong!

10.Which command can be used to view the last 10 lines of a log file?
cat
grep
tail
head

Correct!

Wrong!

11.Which option is used with the "tar" command to extract files from an archive?
-x
-z
-c
-v

Correct!

Wrong!

12.Which command is used to display the contents of a compressed file without extracting it?
gzip -d
tar -tvf
zcat
gunzip

Correct!

Wrong!

13.Where are the system logs typically stored in a Windows operating system?
C:Program FilesLogs
C:WindowsSystem32LogFiles
C:UsersusernameLogs
C:WindowsLogs

Correct!

Wrong!

14.What is the purpose of the "dmesg" command?
To view system startup messages
To monitor network traffic
To analyze disk usage
To check CPU temperature

Correct!

Wrong!

15.How can you create a tar archive while excluding a specific directory?
tar -cvf archive.tar --exclude=directory
tar -cvf archive.tar -x directory
tar -cvf archive.tar -e directory
tar -cvf archive.tar -r directory

Correct!

Wrong!

16.Which command can be used to monitor real-time changes in a log file?
grep
tail
head
less

Correct!

Wrong!

17.What is the purpose of using the "rsync" command with the "-u" option?
To update files in the destination directory
To copy files recursively
To list the differences between source and destination
To display verbose output

Correct!

Wrong!

18.Which log file stores information about software package installations and updates in Linux?
/var/log/yum.log
/var/log/dpkg.log
/var/log/apt.log
/var/log/install.log

Correct!

Wrong!

19.How can you extract a specific file from a tar archive?
tar -xvf archive.tar file.txt
tar -cvf archive.tar -x file.txt
tar -cvf archive.tar --extract file.txt
tar -cvf archive.tar --include file.txt

Correct!

Wrong!

20.Which command is used to create a backup of a directory using tar and gzip compression?
tar -czvf backup.tar.gz directory
tar -xzf backup.tar.gz directory
tar -cvf backup.tar directory
tar -tvf backup.tar.gz directory

Correct!

Wrong!

21.What is the purpose of the "duplicity" command?
To encrypt files and directories
To clone a disk partition
To create incremental backups
To compress files and directories

Correct!

Wrong!

22.How can you restore files from a tar archive?
tar -xvf archive.tar
tar -czvf archive.tar files
tar -rvf archive.tar files
tar -tvf archive.tar.gz

Correct!

Wrong!

23.Which option is used with the "gzip" command to decompress a file?
-d
-c
-v
-t

Correct!

Wrong!

24.How can you create a compressed archive using tar and bzip2 compression?
tar -cjvf archive.tar.bz2 directory
tar -czvf archive.tar.gz directory
tar -cxvf archive.tar.xz directory
tar -cvf archive.tar directory

Correct!

Wrong!

25.Which command is used to extract files from a gzipped tar archive?
tar -xzf archive.tar.gz
tar -czvf archive.tar.gz
tar -tvf archive.tar.gz
tar -rvf archive.tar.gz

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

Ignore & go to results

Ubuntu Troubleshooting – Quiz

You got %%score%% of %%total%% right

%%description%%

%%description%%

Loading...

Exit mobile version