Tag: operating systems

Questions Related to operating systems

What does the command ls do?

  1. isplay of the contents of a file

  2. Shows a calendar

  3. Display of files and folders, present in the folder where you are

  4. Opening a file


Correct Option: C

How can you append the output of a command to a file?

  1. command < file

  2. command >> file

  3. command << file

  4. command <> file


Correct Option: B

How to create a new file without opening it?

  1. pico filename

  2. cat filename

  3. more filename

  4. touch filename


Correct Option: D

AI Explanation

To create a new file without opening it, you can use the touch command.

Option A) pico filename - This option is incorrect because pico is a text editor, not a command to create a new file without opening it.

Option B) cat filename - This option is incorrect because cat is a command used to display the contents of a file, not create a new file.

Option C) more filename - This option is incorrect because more is a command used to view a file one screen at a time, not create a new file.

Option D) touch filename - This option is correct because the touch command is used to create a new file without opening it. It updates the access and modification timestamps of the file, and if the file does not exist, it creates an empty file with the specified name.

The correct answer is Option D.

With what command you can see what folder you are in?

  1. whereami

  2. place

  3. pwd

  4. trace


Correct Option: C

Which structure is found inside journal file system?

  1. mcells

  2. fragments

  3. inodes table

  4. cylinder group


Correct Option: C
  1. execute a remote command

  2. log in and initiate a shell on a remote system

  3. This is a restricted shell on HP-UX.

  4. grant read-only access to a system


Correct Option: C

Which shell does not have history feature?

  1. Bourne shell

  2. Korn shell

  3. C shell

  4. POSIX shell


Correct Option: A
  1. history

  2. $HOME/.history

  3. $HOME/.sh_history

  4. /etc/history


Correct Option: C
  1. echo $HOME

  2. echo "$HOME"

  3. echo HOME

  4. echo $HOME


Correct Option: A