Basic Linux Commands
1] date ( Display Date ) :-
Linux date command is used to set and display date and time in the command line terminal.
date’s basic syntax is
date [OPTION]… [+FORMAT]
Ex:
date
date ‘-s 2009-07-02 15:43:13 +0800’
===========================================
2] cal (Calendar ) :-
Typing cal Linux command will give you the calendar of the present month on your screen, in the nice standard calendar format. There are various options to customize the calendar
cal’s basic syntax is
cal [month] [year]
Ex:
cal
cal 12 2011
===========================================
3] whatis (search the whatis database for complete words ) :-
whatis is a funny Linux command that’s bound to come in handy, especially while you’re learning Linux. By typing “whatis” followed by a command, Linux returns the first line of the Man-page (manual page) for that command
whatis’s basic syntax is
whatis keyword …
Ex:
whatis cp
whatis ifconfig
===========================================
4] touch (Change file timestamps ) :-
Utility for updating access/modification times of a file to current system time or other specified time, but also useful for creating a new file.
touch’s basic syntax is
touch [options]
Ex:
touch newfile.txt
===========================================
5] lpr (Submits print requests.) :-
lpr Linux command submits files for printing. Files named on the command line are sent to the named printer (or the system default destination if no destination is specified). If no files are listed on the command-line lpr reads the print file from the standard input.
lpr’s basic syntax is
lpr [ options ] [ filename … ]
Ex:
lpr myfile.txt
===========================================