Are you familiar with Unix programming and shell scripting? Put your skills to the test with our engaging shell script quiz, featuring questions and answers on essential concepts in this topic. Shell scripting is a powerful, open-source programming method designed to be executed by the Unix/Linux shell. It allows users to automate tasks by writing scripts that direct the shell See moreto perform a sequence of operations, such as file manipulation, program execution, and text processing.
Shell scripting is widely used for automating repetitive tasks, managing system administration, and simplifying complex operations. If you're looking to deepen your understanding of Unix programming and shell scripting or simply want to test your current knowledge, this quiz is the perfect place to start. Dive in now and see how much you know about the world of shell scripting!
Whereami
Place
Map
Pwd
Rate this question:
Rm filename
Dl filename
Touch filename
Less filename
Rate this question:
Ls ?3[rgi]*
Ls *[rgi]*
Ls [..i*]
Ls ??[rgi]*
Rate this question:
Cd -
Cd /up
Cd ~
Cd ..
Rate this question:
Pwd
I
Whoami
Me
Rate this question:
Kill
Delete
Stop
Shutdown
Rate this question:
Shows a calendar
Display of files and folders, present in the folder where you are
Opening a file
Display of the contents of a file
Rate this question:
2> /dev/null
&> filename
1> filename
2> filename
Rate this question:
Ls -a
Find -a
Find all
All
Rate this question:
Grep “$^” filename.txt
Grep “$” filename.txt
Grep “^$” filename.txt
Grep $^ filename.txt
Rate this question:
$0 would be the first line argument, $1 would be the Second command line argument, $2 the Third, and so on
$1 would be the first command line argument, $2 the second, and so on $0 is the name of the script or function
Both a and b are correct
Both a and b are incorrect
Rate this question:
Csh : C shell
Ksh : Korn Shell
Bash : bourne again shell
Ssh : sea shell
Rate this question:
$? will return exit status of command .0 if command gets successfully executed ,non-zero if command failed.
$? will return exit status of command .Non-0 if command gets successfully executed ,zero if command failed.
System error
Invalid command
Rate this question:
Will return no of error
# will return the number of parameters that are passed as the command-line arguments.
Error
All the above are incorrect
Rate this question:
It's mainly used for showing all params. This shows a few parameter values passed in the shell script.
It's mainly used for showing all params. This shows all values returned.
It's mainly used for showing all params. This shows all parameter values passed in the shell script.
None of the above is correct.
Rate this question:
Getenv() and putenv()
Getenv() and setenv()
Readenv() and putenv()
Readenv() and setenv()
Rate this question:
Chmod(myfile,0742).
Chmod(myfile,0474).
Chmod(myfile,0747).
Chmod(myfile,0744)
Rate this question:
File access count
File owner identifier
File type
File access permissions
Rate this question:
Ls command
Cat command
More command
Disp command
Rate this question:
Whomami
Pwd
Echo $SHELL
$sh
Rate this question:
True
False
Rate this question:
Quiz Review Timeline (Updated): Sep 16, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.