In the Linux command-line shell, pressing Ctrl + D logs out of the interface. If you used the sudo command to execute commands as another user, pressing Ctrl + D exits out of that other user and puts you back as the user you originally logged into.
What is control D in Linux?
There are a lot of control sequences available on Linux systems — maybe even some you’ve never used. … The ctrl-d sequence closes the terminal window or end terminal line input.
What signal is Ctrl-D?
Ctrl + D is not a signal, it’s EOF (End-Of-File). It closes the stdin pipe. If read(STDIN) returns 0, it means stdin closed, which means Ctrl + D was hit (assuming there is a keyboard at the other end of the pipe).