UNIX MCQs – Backup and Restore (Part – 2)

UNIX Question and Answer – Backup and Restore

UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test

1. Which command in UNIX is used to create a backup archive of files and directories?

a) backup

b) compress

c) tar

d) gzip

Answer: c) tar

Explanation: The tar command in UNIX is commonly used to create backup archives of files and directories.


2. What is the purpose of the -j option in the tar command?

a) Create a backup archive

b) Extract files from a backup archive

c) Compress the archive using bzip2

d) List the contents of the archive

Answer: c) Compress the archive using bzip2

Explanation: The -j option in the tar command is used to compress the archive using the bzip2 compression algorithm.


3. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


4. What does the acronym “SSH” stand for in the context of remote backups in UNIX?

a) Secure Shell

b) System Services Hub

c) Superuser Sharing

d) System Snapshot Handler

Answer: a) Secure Shell

Explanation: SSH (Secure Shell) is a cryptographic network protocol used for secure remote login, remote command execution, and secure file transfer.


5. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


6. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


7. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.


8. What is the purpose of the -x option in the rsync command?

a) Exclude files from transfer

b) Extract files from an archive

c) Transfer files with extended attributes

d) Execute commands on the remote system

Answer: a) Exclude files from transfer

Explanation: The -x option in the rsync command is used to exclude specific files or directories from the transfer.


9. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


10. What is the purpose of the -z option in the tar command?

a) Compress the archive using gzip

b) Extract files from a compressed archive

c) List the contents of the archive

d) Add files to an existing archive

Answer: a) Compress the archive using gzip

Explanation: The -z option in the tar command is used to compress the archive using the gzip compression algorithm.


11. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


12. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


13. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.


14. What is the purpose of the -x option in the rsync command?

a) Exclude files from transfer

b) Extract files from an archive

c) Transfer files with extended attributes

d) Execute commands on the remote system

Answer: a) Exclude files from transfer

Explanation: The -x option in the rsync command is used to exclude specific files or directories from the transfer.


15. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


16. What is the purpose of the -z option in the tar command?

a) Compress the archive using gzip

b) Extract files from a compressed archive

c) List the contents of the archive

d) Add files to an existing archive

Answer: a) Compress the archive using gzip

Explanation: The -z option in the tar command is used to compress the archive using the gzip compression algorithm.


17. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


18. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


19. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.


20. What is the purpose of the -x option in the rsync command?

a) Exclude files from transfer

b) Extract files from an archive

c) Transfer files with extended attributes

d) Execute commands on the remote system

Answer: a) Exclude files from transfer

Explanation: The -x option in the rsync command is used to exclude specific files or directories from the transfer.


21. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


22. What is the purpose of the -z option in the tar command?

a) Compress the archive using gzip

b) Extract files from a compressed archive

c) List the contents of the archive

d) Add files to an existing archive

Answer: a) Compress the archive using gzip

Explanation: The -z option in the tar command is used to compress the archive using the gzip compression algorithm.


23. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


24. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


25. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.


26. Which command in UNIX is used to create a backup archive of files and directories?

a) backup

b) compress

c) tar

d) gzip

Answer: c) tar

Explanation: The tar command in UNIX is commonly used to create backup archives of files and directories.


27. What is the purpose of the -j option in the tar command?

a) Create a backup archive

b) Extract files from a backup archive

c) Compress the archive using bzip2

d) List the contents of the archive

Answer: c) Compress the archive using bzip2

Explanation: The -j option in the tar command is used to compress the archive using the bzip2 compression algorithm.


28. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


29. What does the acronym “SSH” stand for in the context of remote backups in UNIX?

a) Secure Shell

b) System Services Hub

c) Superuser Sharing

d) System Snapshot Handler

Answer: a) Secure Shell

Explanation: SSH (Secure Shell) is a cryptographic network protocol used for secure remote login, remote command execution, and secure file transfer.


30. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


31. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


32. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.


33. What is the purpose of the -x option in the rsync command?

a) Exclude files from transfer

b) Extract files from an archive

c) Transfer files with extended attributes

d) Execute commands on the remote system

Answer: a) Exclude files from transfer

Explanation: The -x option in the rsync command is used to exclude specific files or directories from the transfer.


34. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


35. What is the purpose of the -z option in the tar command?

a) Compress the archive using gzip

b) Extract files from a compressed archive

c) List the contents of the archive

d) Add files to an existing archive

Answer: a) Compress the archive using gzip

Explanation: The -z option in the tar command is used to compress the archive using the gzip compression algorithm.


36. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


37. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


38. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.


39. What is the purpose of the -x option in the rsync command?

a) Exclude files from transfer

b) Extract files from an archive

c) Transfer files with extended attributes

d) Execute commands on the remote system

Answer: a) Exclude files from transfer

Explanation: The -x option in the rsync command is used to exclude specific files or directories from the transfer.


40. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


41. What is the purpose of the -z option in the tar command?

a) Compress the archive using gzip

b) Extract files from a compressed archive

c) List the contents of the archive

d) Add files to an existing archive

Answer: a) Compress the archive using gzip

Explanation: The -z option in the tar command is used to compress the archive using the gzip compression algorithm.


42. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


43. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


44. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.


45. What is the purpose of the -x option in the rsync command?

a) Exclude files from transfer

b) Extract files from an archive

c) Transfer files with extended attributes

d) Execute commands on the remote system

Answer: a) Exclude files from transfer

Explanation: The -x option in the rsync command is used to exclude specific files or directories from the transfer.


46. Which command in UNIX is used to create a backup copy of a file with a timestamp appended to its name?

a) backup

b) cp

c) timestamp

d) touch

Answer: d) touch

Explanation: The touch command in UNIX can be used to update the timestamp of a file or create an empty file with a specified timestamp.


47. What is the purpose of the -z option in the tar command?

a) Compress the archive using gzip

b) Extract files from a compressed archive

c) List the contents of the archive

d) Add files to an existing archive

Answer: a) Compress the archive using gzip

Explanation: The -z option in the tar command is used to compress the archive using the gzip compression algorithm.


48. Which utility in UNIX is used to automate and schedule repetitive backup tasks?

a) cron

b) backupd

c) autosave

d) timekeeper

Answer: a) cron

Explanation: The cron utility in UNIX is used to schedule repetitive tasks, such as backups, at specified intervals.


49. What is the purpose of the -u option in the tar command?

a) Update the contents of an archive

b) Uncompress an archive

c) Untar an archive

d) Use alternate file permissions

Answer: a) Update the contents of an archive

Explanation: The -u option in the tar command is used to update the contents of an existing archive with new or modified files.


50. Which command in UNIX is used to compress files and directories into a single archive?

a) zip

b) compress

c) gzip

d) tar

Answer: d) tar

Explanation: The tar command in UNIX is commonly used to create compressed archives of files and directories.

Related Articles

Linux MCQ

Welcome to Linux Multiple Choice Questions (MCQ) Section Embark on a journey through the world of...