Manpage vs Info page in linux And the ls command in Linux

The Man command in Linux stands for Manual

To scroll down the linux shell use spacebar. When we give the man ls command we could see the information about the files in it .And  we could see the synopsis of how to use the command. And also we could see the various options avaible in it.

For eg : the  - a command over there lists the entire files including user created.

- l command is used to list the entire files with the details of when created file type etc.

Now lets see some of the linux commands :

ls                     -    this lists the directory files

ls  -a              -   this command lists the entire files in the directory . Here we could see user config files like        .bash_history - which contains the info   of     the   commands given in shell (i.e,) when we scrolldown we get the list of commands we typed in shell due to this file. And also we could see the.gnome file which contains the directory configuration files

ls -l              - this command lists the files excluding the .doc files . And we could get information of the date it was created and the user privelages of it etc.

ls -al          - this command gives the entire file info including the .doc files.

Now lets see the Info command

info ls     - command would give the entire document of the ls command.

In in the Info page you could see the entire the menu option where when w give the ENTER key over there we could get the detailed info of the commands . And to search for any keywords we should use the CNTRL + S . When we give CNTRL + S again and again we could go the next  instances of keywords . To stop searching use CNTRL + G . And to quit info page use q .

 

And where as in Man page its like vi window , where we could see the : over there . And here to search give /  instead of : and then give the keyword  there  and press ENTER we could get the instance of that keyword.

 

The Info pages are useful to learners and Man pages are useful for experienced users

 

 

 

 

No comments:

Post a Comment