Special Variables Flashcards

1
Q

What does $* refer to?

A

All the arguments typed on the command line. If you use this in echo it will remove quotes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does $# refer to?

A

The number of arguments or parameters that were typed on the command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does $? refer to?

A

Echo this command to see the exit status of the previous command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does “$@” refer to?

A

All the arguments on the command line, but interprets quotes if you use in echo.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly