Which command is used to display the device name of the terminal you are using? A. who B. ls C. tty D. stty E. None of the above

who
ls
tty
stty E. None of the above

The correct answer is C. tty.

The tty command is used to display the device name of the terminal you are using. The device name is the name of the file that represents the terminal. For example, if you are using a virtual terminal, the device name might be /dev/pts/0.

The who command is used to display a list of users who are currently logged in to the system. The ls command is used to list the contents of a directory. The stty command is used to set and get terminal settings.

None of the above options are correct.

Exit mobile version