i want to resize the shell for all users

i tried the command stty rows 25 cols 80

but after reboot, its back to 37 100

  • 2
    The shell should always adapt to the size of the terminal (emulator) it's running in. Are you talking about the text-mode console, or about a GUI terminal window? If GUI, is it the default GNOME Terminal, the classic xterm or something else? – telcoM May 23 at 6:29
  • 1
    You should set the video mode by setting kernel mode settings in GRUB. Look here: unix.stackexchange.com/questions/71231/… and here pierre.baudu.in/other/grub.vga.modes.html – nobody May 23 at 9:29
  • 1
    stty just affects the current session. It doesn’t make any permanent changes. If it is indeed something you want to run for all users, you can add a script in /etc/profile.d/ to run it for every login. – jsbillings May 23 at 18:39
  • @jsbillings I know, what should I add to the script? – karam albousy May 24 at 13:44
  • 1
    That’s up to you. Looks like you already know the ‘stty’ command to use. – jsbillings May 24 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.