
# any part of a page name, a match will be made. # Interpret each name as a regular expression. # where manpath is a manual page hierarchy such as /usr/man. # whatis -M manpath -w '*' | sort > manpath/whatis # base from the relative index database, issue the command: To produce an old style text whatis data†# periodic cron job, or may need to be run manually after new manual

Depending on your installation, this may be run by a # index databases are used during the search, and are updated by the # special characters to stop the shell from interpreting them.

# these options, it may be necessary to quote the name or escape (\) the # name may contain wildcards (-w) or be a regular expression (-r). # searches the manual page names and displays the manual page descrip†# Each manual page has a short description available within it. # whatis - display one-line manual page descriptions man whatis # WHATIS(1) Manual pager utils WHATIS(1) Let us use it to view the documentation of the whatis command which we will use next. Man is used to view the system’s reference manual. To clear the R console, we use Ctrl + L.īefore we proceed further, let us learn to view the documentation/manual pages of the commands. The current date & time are returned by Sys.date() & Sys.time(). In R, we can get the user information from Sys.info() or whoami() from the whoami package. You can clear the screen by pressing Ctrl + L as well. date # Wed Jun 10 22:45:Ĭal will display a formatted calendar and clear will clear all text on the screen and display a new prompt. whoami # aravindĭate will display or change the value of the system’s time and date information.

Use it to verify the user as which you are logged into the system. Whoami prints the effective user id i.e. the name of the user who runs the command. We have listed more references at the end of the tutorial for the benefit of the readers. Software Carpentry too has a lesson on shell. If you want a deeper understanding of using command line for data science, we suggest you read Data Science at the Command Line.
