asked 29.6k views
4 votes
Which command is used to set terminal IO characteristic?

1) tty
2) ctty
3) ptty
4) None of the above

1 Answer

4 votes

Final answer:

The correct command to set terminal IO characteristics in Unix and Unix-like systems is 'stty,' which is not listed among the given options.

Step-by-step explanation:

The command used to set terminal IO (Input/Output) characteristics is not listed among the options provided. Instead, the command typically used for this purpose on Unix and Unix-like systems is stty. Neither tty, which prints the file name of the terminal connected to standard input, ctty, which is not a standard Unix command, nor ptty (which typically refers to a pseudoterminal, not a command to set its characteristics) serve this function. Therefore, none of the provided options are correct. However, if the context is DOS-based systems, 'ctty' can change the terminal device, but for setting IO characteristics, stty is the correct command in Unix-like environments.

answered
User JordanMazurke
by
8.9k points