Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

which symbol shows the count of the arguments passed to the script.

  • %$
  • $$
  • $#
  • %#
Solutions
Question - 2

What is the PID of the process ‘init’

  • 1
  • 0
  • 3
  • 5
Solutions
Question - 3

What is the significance of $#?

  • It will shows the count of the arguments passed to the script.
  • It will show the arguments passed to the script
  • It will show the numbers files
  • None of the above
Solutions
Question - 4

By using which command we can find out how long the system has been running?

  • uptime
  • runtime
  • intime
  • None of the other
Solutions
Question - 5

What is the difference between $$ and $!?

 

 

  • $$ gives the process id of the currently executing process whereas $! Shows the process id of the process that recently went into the background.
  • $$ Shows the process id of the process that recently went into the background whereas $! gives the process id of the currently executing process .
  • $$ Show the count of process id whereas $! gives count of background process id
  • None of these
Solutions
Question - 6

By using which below utilies we can copy a file from one machine to other?

 

 

  • ftp
  • scp
  • rsync
  • All the above
Solutions
Question - 7

Which is the below option is a standard streams?

 

 

  • stdout
  • stdin
  • stdfn
  • Both A and B
Solutions
Question - 8

What is the significance of $?

 

 

  • The command $? gives the current status of the command
  • The command $? gives the exit status of the last command that was executed.
  • Both a &b
  • All the above
Solutions
Question - 9

Every file system on Linux having four fundamental components, below options which one is not belongs to it?

  • Bootblock
  • Super block
  • Inode block
  • Dead block
Solutions
Question - 10

What Zombie stage does in Linux process?

  • In this stage, the Linux process has to wait for the requisite resource.
  • In this stage, the process gets executed.
  • After successful execution, the Linux process stops.
  • In the final step, even though the process is no longer running, it remains active in the process table.
Solutions
Question - 11

Which command should you use to check the disk usage?

  • df
  • du
  • dfspace
  • All the above
Solutions
Question - 12

What does grep command do?

  • The grep command can search for specific information in a file
  • The grep command shows information about the user.
  • The grep command shows the current working directory.
  • The grep command compresses the specified file
Solutions
Question - 13

Which of the following is not a Shell ?

  • Bourne
  • Bash
  • Ksh
  • Bat
Solutions
Question - 14

What is PPID?

  • Parent process identification
  • Priority process identification
  • Previous process identification
  • Pre Parent identification
Solutions
Question - 15

Which command can be used to rename a file or a directory?

  • rm
  • rname
  • move
  • mv
Solutions
Question - 16

Which is the earliest and most widely used shell in UNIX?

  • bash
  • bsh
  • ksh
  • csh
Solutions
Question - 17

Which command can be used to restrict the messages to be written onto you terminal using write command?

  • mesg
  • stop
  • halt
  • None of the above
Solutions
Question - 18

Which command is used to get intermediate result in a pipeline of commands?

  • tee
  • tea
  • get
  • grep
Solutions
Question - 19

Identify the invalid run level from the following.?

  • S
  • 1
  • 0
  • 8
Solutions
Question - 20

What is the outcome of a program running a command using exec?

  • Command will get executed in a new shell.
  • Command will get launched as a daemon process.
  • Command will execute in the current shell without creating any new process.
  • None of the above
Solutions
Tags:
Shell Scripting MCQ (Multiple Choice Questions), Advanced Shell Scripting MCQ, Shell Scripting MCQ Online test, Shell Scripting MCQ Questions and answers PDF, Shell Scripting Interview Questions With Answers, Shell Scripting Technical Questions with full explanation