Consider the following commands: What is displayed when this sequence of commands is
executed using the bash shell?
A.
Hello, world
B.
cat: cannot open file1: No such file or directory Hello, world
C.
cat: cannot open file1: No such file or directory
D.
bash: syntax error near unexpected token ‘| |’
E.
bash: syntax error broker pipe
Explanation:
Not sure what command it is saying?
it’s clearly B
command is not shown here but the command like the following
#rm file1
#echo “Hello, world” >file2
#cat file1 ||cat file2
After I tested
examt@tscrmdev1:~$ cat file1
welcome file1
examt@tscrmdev1:~$ cat file2
Hello, World
examt@tscrmdev1:~$ cat file1 || cat file2
welcome file1
examt@tscrmdev1:~$ rm file1
examt@tscrmdev1:~$ cat file1 || cat file2
cat: cannot open file1: No such file or directory
Hello, World
B