Basic Linux Tutorial
Computer Tutorial

Basic Linux Commands



Basic Linux Commands

Opening the shell prompt, you must use these commands. Enter the command name and then press the Enter key to execute it. If the command is valid, the shell executes it and displays the result produced by the command.

date

date shows the current date and time on the system.

Synopsis :

date   [options] .... [+format]

Example :

» Date without arguments writes the date and time to the standard output in the form.
$ date
Wed Jul 13 01:49:10 PDT 2016
» date can also be used to display specific fields of the date.
$ date ”+%H %M”
14 12

cal

cal displays a simple calendar. If arguments are not specified, the current month is displayed with the current day highlighted.

Synopsis :

$cal   [options]

Example :

cal command

man

man command shows all information about followed by a command. Press q to quit the manpage.

Synopsis :

$man   < command name >

Example :

man command