Multiple choice technology operating systems

What will the following command do? echo *

  1. Display all the files under current directory

  2. displcay the pid of the last background job

  3. display the pid of the current background job

  4. display syntax error

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The shell expands the wildcard character * to all non-hidden filenames in the current directory before passing them to the echo command, which displays them separated by spaces. The PID of background jobs is retrieved using $! or jobs, and there is no syntax error.