Showing posts with label Basic Commands. Show all posts
Showing posts with label Basic Commands. Show all posts

Echo Command - Writing Output on Screen


Echo Command


Echo is a shell built-in command used to display a line of text on standard output.

echo with -e option enables interpretation of backslash escapes

Some backslashes used for different purpose are:


\\
backslash
\a
alert (BEL)
\b
backspace
\c
suppress trailing newline
\f
form feed
\n
new line
\r
carriage return
\t
horizontal tab
\v
vertical tab



Date and hwclock Commands with Example

Date Command


Date command is used to display the current date and time or setting the system date and time on terminal or through ssh session.


date command Examples


To display the current date and time use date command

$ date

Thu Aug 28 17:50:29 IST 2014



To Display The Hardware Clock (RTC), you need to be root user to use hwclock command.