etc passwd

How do I read a text file using awk pattern scanning and text processing language under Linux / Unix like operating systems?

{ 1 comment }

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


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 […]


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 […]


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