Linux File Commands Aptitude Questions and Answers

Linux File Commands Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux File Commands.
Submitted by Nidhi, on May 20, 2020

This section contains Aptitude Questions and Answers on Linux File Commands.

1) There are the following statements that are given below, which of them are correct about files in Linux?
  1. The file can be a text, image, audio, and video file.
  2. A device is also represented as a file in the Linux operating system.
  3. A directory is also a file.
  4. Disk partitions are also represented as a file.

Options:

  1. A and B
  2. A and C
  3. A, B, C, and D
  4. B, C, and D

2) There are the following statements that are given below, which of them are correct types of files in Linux?
  1. Executable file
  2. Device file
  3. Named pipe file
  4. Block file

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. A, B, C, and D

3) There are the following statements that are given below, which of them are correct about the Linux File System?
  1. File System is a layer in the Linux operating system, which is used to control the management of storage data.
  2. It provides the arrangement of files in the disk storage.
  3. It is used to manage information about files like name, size, creation, and modification time.
  4. Linux File System is the software that runs only on Intel architecture.

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. A, B, C, and D

4) Can we create a file in the Linux operating system without any file extension?
  1. Yes
  2. No

5) In the Linux File System, what is used to separate components of paths?
  1. Forward Slash ('/')
  2. Backward Slash ('\')

6) In Linux File System, which symbol is used before filename in case of hidden files?
  1. #
  2. $
  3. Dot (.)
  4. @

7) What are the correct types of file systems used in the Linux operating system?
  1. Ext3
  2. Ext4
  3. JFS
  4. XFS

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. A, B, C, and D

8) What is the full form of JFS?
  1. Just File System
  2. Journaled File System
  3. Joint File System
  4. Joker File System

9) There are the following statements that are given below, which of them are correct about Btrfs File System in Linux?
  1. This file system does not use for production purposes.
  2. It is used for fault tolerance.
  3. It is used for extensive storage configuration.
  4. It is used the extended version of JFS.

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. A, B, C, and D

10) Which of the following commands are used to create files in the Linux Operating System?
  1. cat
  2. echo
  3. touch
  4. printf

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. A, B, C, and D

11) There are the following statements that are given below, which of them are correct about touch command in Linux?
  1. It is used to create empty files.
  2. It is used to update the timestamp of the existing file.
  3. It is used to write formatted data into the file.
  4. It is used to view the content of the file.

Options:

  1. A and B
  2. B and C
  3. A, B, and C
  4. A, B, C, and D

12) What are the popular editors are used in the Linux operating system?
  1. Vi
  2. Vim
  3. Gedit
  4. Nano

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. A, B, C, and D

13) Which command is used to check the type of file?
  1. type
  2. file
  3. filetype
  4. filetypes

14) Which exact command is used to change the only modification time of a file in the Linux operating system?
  1. touch -m
  2. touch -k
  3. touch -p
  4. touch –l

15) Which command is used to check the access and modification time of a file in Linux?
  1. check
  2. filetimes
  3. state
  4. file

16) Which of the following redirection operator is used to append the content in a file?
  1. >
  2. <
  3. >>
  4. <>

17) Which command is used to print file content in reverse order line wise, it means, the last line will print first and then print the second last line and so on?
  1. reverse
  2. tac
  3. cat
  4. gedit

18) Which command is used to view the specified lines from the start of a file?
  1. start
  2. head
  3. beg
  4. first

19) By default, how many last lines shown by tail command?
  1. 5
  2. 8
  3. 10
  4. 12

20) Which of the following commands are used to view the content of file screen wise?
  1. more
  2. less
  3. cat
  4. tac

Options:

  1. A and B
  2. C and D
  3. A and C
  4. B and C

21) Which command is used to remove a file?
  1. remove
  2. rm
  3. rmfile
  4. delete

22) Which command is used to rename a file?
  1. rename
  2. ren
  3. name
  4. None of the above

23) Which command is used to copy a file from one location to another location?
  1. copy
  2. copyfile
  3. cp
  4. None of the above

24) Which command is used to cut a file from one location and paste to the other location?
  1. cut
  2. ct
  3. move
  4. mv

25) Sometimes can we use the mv command to rename a file or directory?
  1. Yes
  2. No





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.