How to Disable TTY


TTY, or TeleTYpewriter, is the command line interface in the Unix/Linux operating system. By default, the operating system launches several sessions of TTY so the user can launch software from different TTYs or get several users to use their own TTY. Having several TTYs running can represent a security risk or even slow down the system on low-end machines. You can disable TTYs by editing files and rebooting the system.

  • Launch a terminal in Linux.

  • Type "su," press "Enter," type your administrator password and press "Enter" again.

  • Type "gedit" if you are using the Gnome desktop or "Kedit" if you are using the KDE desktop. Press "Enter" to launch your text editor.

  • Click the "Open file" icon on your text editor. Navigate to "/etc" then "/default" and select the "console-setup" file.

  • Locate the "ACTIVE_CONSOLES" lines and change [1-6] to [1] to have only one terminal or [1-2] to have two terminals. Click "CTRL"+"S" to save the file.

  • Click the "Open file" icon and navigate to "/etc", then "/event.d".

  • Edit each of the "ttyX," where X represent the terminal number files for each of the TTYs you do not want launched. If you replace [1-6] with [1-2], edit the tty3 tty4 tty5 tty6 files.

  • Add the "#" character at the start of the first line. Save the file.

  • Close all the open software and save your work. Reboot the computer.

Tips & Warnings

  • You can use the "Vi" editor to edit your files from the command line directly.
  • You need to have administrator privileges to change the system files "console-setup" and"ttyX."

Related Searches


  • Photo Credit rackmount server farm datacenter image by Adryn from
Promoted By Zergnet


You May Also Like

  • What Does TTY Stand for in Linux?

    When you want to run a program on a Linux server, you connect an input device, open a terminal session and type...

  • What Is a TTY Port?

    Over the years, the meaning of the term "TTY port" has evolved from describing a physical connection on a computer to describing...

  • How to Turn Off TTY on a Sony Ericsson Phone

    Some Sony Ericsson phones come with telephone typewriter (TTY) functionality. This allows deaf or hearing impaired individuals to use cell phones to...

  • How to Call OnStar

    OnStar is a vehicle monitoring and driver assistance service built into most General Motor vehicles. The service includes many features, including the...

  • How to Edit File in CentOS

    CentOS is a free, open source, Enterprise class Linux distribution which was created using the RedHat Enterprise Linux source code. The majority...

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!