etc passwd

Grep Count Lines If a String / Word Matches

by Vivek Gite on February 18, 2010 · 0 comments

How do I count lines if given word or string matches for each input file under Linux or UNIX operating systems?

{ 0 comments }

Shell script reverse lines of a file

by Vivek Gite on October 16, 2007 · 18 comments

Q. How do I reverse lines of a file under Linux / UNIX bash shell? A. You need to use the rev utility or command. It copies the specified files to the standard output, reversing the order of characters in every line. If no files are specified, the standard input is read. Display one line [...]

{ 18 comments }

Linux Changing DNS Search Order

by Vivek Gite on April 27, 2007 · 0 comments

Q. How do I change DNS search order in Linux? In order to improve performance I need to make changes. A. Under Linux you need to use /etc/nsswitch.conf file which is used by system databases and Name Service Switch configuration file Various functions in the C Library need to be configured to work correctly in [...]

{ 0 comments }

Understanding /etc/passwd File Format

by Vivek Gite on February 22, 2006 · 75 comments

Q. Can you explain /etc/passwd file format for Linux and UNIX operating systems?

{ 75 comments }