Can I disable getty under Linux?

I am running Ubuntu Server 8.04. Do I really need all five getty tasks running? It automatically starts tty2 through tty6.

I know they don't consume a lot of resources, but they do consume limited space on the window I keep running to view the "top" program. If at least a few of them were gone, all my processes would fit within one screen.

If I never need a serial port, can I disable some or all of them? I do not know if they are required for the terminal to work, or to allow ssh access, which is all I really ever use.

Who is Participating?
Joseph GanConnect With a Mentor System AdminCommented:
You can disable them by edit the /etc/inittab file, and comment out some of the ttys.

You must activate the changes that you made in /etc/inittab with the following command, which forces the init process to re-read the configuration file:
# init q
You can check it with the following command before and after the change:
# ps -ef | grep tty
Never the less, you'd be better leave one or two available, because you need them if your ssh didn't work.
I found this link.  Looks to do the trick.
Monis MontherSystem ArchitectCommented:
If your problem is the view of your top command , then you can install htop it will allow you to scroll down to the rest of the processes with the arrow keys
james_owenConnect With a Mentor Commented:
Yep...  Ganjos has it

 in my /etc/inittab:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

comment out as needed and restart '/sbin/init'  

# kill -HUP `ps -ef | grep init | grep -v grep | awk '{print $2}'`
# init q
for the so-inclined, just reboot...
All Courses

From novice to tech pro — start learning today.