Linux Directory Commands Aptitude Questions and Answers

Linux Directory Commands Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux Directory Commands.
Submitted by Nidhi, on April 28, 2020

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

1) There are the following statements that are given which of them are correct about Linux commands?
  1. In the Linux operating system, a command is an instruction to the system to perform a particular task.
  2. Linux commands are case sensitive.
  3. All Linux commands are scripts written in python.
  4. All of the above

Options:

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

2) Linux commands can be internal or external?
  1. Yes
  2. No

3) Which command is used to get the path of the current directory?
  1. cdir
  2. dir
  3. pwd
  4. pdir

4) Which exact command is used to change from the current directory to the previous directory?
  1. cd ..
  2. cd ~
  3. cd -
  4. cd .

5) Can we change directory using "cd" command with an absolute path?
  1. Yes
  2. No

6) A relative path always starts from '/' in Linux commands?
  1. Yes
  2. No

7) Which exact command is used to list the files and directories along with hidden files?
  1. ls -l
  2. ls -k
  3. ls -a
  4. ls -n

8) Which exact command is used to list the files and directories with group id and owner id instead of their names?
  1. ls -l
  2. ls -n
  3. ls -k
  4. ls -h

9) Which exact command is used to list the files and directories with the size of the file or directory?
  1. ls -l
  2. ls -s
  3. ls -k
  4. ls -h

10) How to check the version of the "ls" command?
  1. ls -v
  2. ls --v
  3. ls -version
  4. ls --version

11) Which command is used to create multiple directories in a single command?
  1. md
  2. mkdir
  3. makedir
  4. mkdirs

12) Can we provide permissions to the directory at the time of creation using the "mkdir" command?
  1. Yes
  2. No

13) Which exact command is used to remove a directory with its sub-directories?
  1. rmdir -a
  2. rmdir -p
  3. rmdir -s
  4. rmdir -k

14) Which exact command is used to remove a non-empty directory?
  1. rmdir -removeall
  2. rmdir -n
  3. rmdir -rf
  4. rmdir -ra





Comments and Discussions!

Load comments ↻





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