LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2016, 01:59 PM   #1
scottdp3
LQ Newbie
 
Registered: Feb 2016
Location: Colorado
Posts: 1

Rep: Reputation: Disabled
passwd file


How do I turn on colors for the passwd file when I am using vi? I have a couple of Linux systems and on some the passwd file is divided in colors in columns. On others systems the passwd file is in the terminal colors.

I want to know how to turn the colors on for passwd?
 
Old 08-27-2016, 02:29 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,599

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Mine only turns on colors if I am editing read/write.

Otherwise it is monocrome.

The passwd file really shouldn't be edited by vi/vim.
 
Old 08-27-2016, 02:52 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
That's why we have vipw and vigr.
 
2 members found this post helpful.
Old 08-27-2016, 03:56 PM   #4
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 106Reputation: 106
Turn the colours off!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Syncing shadow file with passwd file Issa1 Linux - Newbie 2 05-13-2012 09:12 PM
+:::::: in Passwd file noriko_q Linux - Security 1 03-12-2008 08:01 AM
/etc/passwd File Problem sobia Linux - General 3 02-20-2007 05:04 AM
question about /etc/passwd file hongxing Linux - Software 2 11-30-2005 11:47 AM
/etc/passwd file wedgeworth Linux - Software 1 10-09-2003 01:53 PM


All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration