Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I press tab in terminal it goes very far. So I would like to change tab width, make it smaller. Anyone could help me, please?

share|improve this question
You should accept an answer! – gsamaras Jun 17 '15 at 9:20

You can set the tab width on any terminal to 4 (for example) by using the following command:

tabs -4

You can also set an explicit tablist. Consider looking at the man page.

share|improve this answer

If you are referring to using the Tab key in the terminal, I found this at UF. Ubuntu Forums Thread #7788701:

A possibility is setting the spacing in the application you are using via the terminal. For example in vim - :set tabstop=4 .

Or you could look into the man page for the expand command with man expand. Example of usage - expand -t 4 mytextfile.txt - this would convert the tab spacing when viewing a file from the default 8 to 4.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.