How Do You Write a Tab in Unix?
Contents

In general, if you want to insert tab in bash, you can force a literal tab by typing Ctrl-V TAB or the equivalent Ctrl-V Ctrl-I; this also works for other special characters.

How do I insert a tab in a text file?

The tab character can be inserted by holding the Alt and pressing 0 and 9 together.

How do I give a tab space in Linux?

replace space by tab

vimrc set up :set expandtab :set tabstop=4 # or you can do this :set tabstop=4 shiftwidth=4 expandtab # then in the py file in command mode, run :retab! :set noet|retab!

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest