MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
how to find out which shell our system has?
A
echo $shell
B
echo $SHELL
C
cat shell
D
echo sh
Explanation: 

Detailed explanation-1: -Echo is a Unix/Linux command tool used for displaying lines of text or string which are passed as arguments on the command line. This is one of the basic command in linux and most commonly used in shell scripts.

Detailed explanation-2: -You need to use the hostname command or hostnamectl command. Both commands can either set or show the current host, domain or node name of the system.

Detailed explanation-3: -Now, coming to the article’s main subject, how will you know that you have bash or zsh? The answer is quite simple. Use the “–version” command to confirm the existence of both shells on your Linux system.

There is 1 question to complete.