You are on page 1of 3

PRESENTED AND SUBMITTED TO

“LAXMAN DEVRAM SONAWANE


COLLEGE,KALYAN (WEST) 421301 PARTIAL
FULFILLMENT OF B.SC (IT) SEM V
University of Mumbai”
Academic Year 2021-2022
Subject :- Linux System Administration
Topic name:- 1) Write short notes on man command.
2) Explain any five commands to view the contents
of text files.
Unit:- 1
Student Name:- Omkar Kanha Patil
PRN no:- 2019016401080551
ID number:- 25247
Roll no.:- 47
Date:- 24/09/2021
Batch:- 41-50
Submitted to:-
Mrs. Nrupura Ramnath Dixit
WRITE SHORT NOTES ON MAN COMMAND?

The "man" is a short term for manual page. In Unix like operating systems such as Linux, man is an interface
to view the system's reference manual.
A user can request to display a man page by simply typing man followed by a space and then argument.
Here its argument can be a command, utility or function. A manual page associated with each of these
arguments is displayed.
If you will provide a section number in the command, then man will be directed to look into that section
number of the manual and that section page will be displayed. And if not, then by default it will display the first
page and you have to go through the entire sections in a pre-defined manner.
Sections:

Executable programs and shell Commands


System calls
Library calls
Special files
File formats and conventions
Games
Miscellaneous
System administration commands
Kernel routines
Explain any five commands to view the contents of text files.
Cat
This is the simplest and perhaps the most popular command to view a file in Linux.
Cat simply prints the content of the file to standard display i.e. your screen. It cannot be simpler than this,
can it?
Nl
The nl command is almost like the cat command. The only difference is that it prepends line numbers while
displaying the text in the terminal.
Less
Less command views the file one page at a time. The best thing is that you exit less (by pressing q), there
are no lines displayed on the screen. Your terminal remains clean and pristine.
Head
Head command is another way of viewing text file but with a slight difference. The head command displays the
first 10 lines of a text file by default.
Tail
Tail command in Linux is similar and yet opposite to the head command. While head command displays file
from the beginning, the tail command displays file from the end.By default, tail command displays the last
10 lines of a file.

You might also like