| Tag | Description |
|---|---|
| <!--...--> | Defines a comment |
| <!DOCTYPE> | Defines the document type |
| <a> | Defines a hyperlink |
| <abbr> | Defines an abbreviation |
| <acronym> | Not supported in HTML5. Defines an acronym |
| <address> | Defines contact information for the author/owner of a document |
| <applet> | Not supported in HTML5. Deprecated in HTML 4.01. Defines an embedded applet |
| <area> | Defines an area inside an image-map |
| <article>New | Defines an article |
| <aside>New | Defines content aside from the page content |
| <audio>New | Defines sound content |
| <b> | Defines bold text |
| <base> | Specifies the base URL/target for all relative URLs in a document |
| <basefont> | Not supported in HTML5. Deprecated in HTML 4.01. Specifies a default color, size, and font for all text in a document |
| <bdi>New | Isolates a part of text that might be formatted in a different direction from other text outside it |
| <bdo> | Overrides the current text direction |
| <big> | Not supported in HTML5. Defines big text |
| <blockquote> | Defines a section that is quoted from another source |
| <body> | Defines the document's body |
| <br> | Defines a single line break |
| <button> | Defines a clickable button |
| <canvas>New | Used to draw graphics, on the fly, via scripting (usually JavaScript) |
| <caption> | Defines a table caption |
| <center> | Not supported in HTML5. Deprecated in HTML 4.01. Defines centered text |
| <cite> | Defines the title of a work |
| <code> | Defines a piece of computer code |
| <col> | Specifies column properties for each column within a <colgroup> element |
| <colgroup> | Specifies a group of one or more columns in a table for formatting |
| <command>New | Defines a command button that a user can invoke |
| <datalist>New | Specifies a list of pre-defined options for input controls |
| <dd> | Defines a description of an item in a definition list |
| <del> | Defines text that has been deleted from a document |
| <details>New | Defines additional details that the user can view or hide |
| <dfn> | Defines a definition term |
| <dir> | Not supported in HTML5. Deprecated in HTML 4.01. Defines a directory list |
| <div> | Defines a section in a document |
| <dl> | Defines a definition list |
| <dt> | Defines a term (an item) in a definition list |
| <em> | Defines emphasized text |
| <embed>New | Defines a container for an external (non-HTML) application |
| <fieldset> | Groups related elements in a form |
| <figcaption>New | Defines a caption for a <figure> element |
| <figure>New | Specifies self-contained content |
| <font> | Not supported in HTML5. Deprecated in HTML 4.01. Defines font, color, and size for text |
| <footer>New | Defines a footer for a document or section |
| <form> | Defines an HTML form for user input |
| <frame> | Not supported in HTML5. Defines a window (a frame) in a frameset |
| <frameset> | Not supported in HTML5. Defines a set of frames |
| <h1> to <h6> | Defines HTML headings |
| <head> | Defines information about the document |
| <header>New | Defines a header for a document or section |
| <hgroup>New | Groups heading (<h1> to <h6>) elements |
| <hr> | Defines a thematic change in the content |
| <html> | Defines the root of an HTML document |
| <i> | Defines a part of text in an alternate voice or mood |
| <iframe> | Defines an inline frame |
| <img> | Defines an image |
| <input> | Defines an input control |
| <ins> | Defines a text that has been inserted into a document |
| <kbd> | Defines keyboard input |
| <keygen>New | Defines a key-pair generator field (for forms) |
| <label> | Defines a label for an <input> element |
| <legend> | Defines a caption for a <fieldset>, < figure>, or <details> element |
| <li> | Defines a list item |
| <link> | Defines the relationship between a document and an external resource (most used to link to style sheets) |
| <map> | Defines a client-side image-map |
| <mark>New | Defines marked/highlighted text |
| <menu> | Defines a list/menu of commands |
| <meta> | Defines metadata about an HTML document |
| <meter>New | Defines a scalar measurement within a known range (a gauge) |
| <nav>New | Defines navigation links |
| <noframes> | Not supported in HTML5. Defines an alternate content for users that do not support frames |
| <noscript> | Defines an alternate content for users that do not support client-side scripts |
| <object> | Defines an embedded object |
| <ol> | Defines an ordered list |
| <optgroup> | Defines a group of related options in a drop-down list |
| <option> | Defines an option in a drop-down list |
| <output>New | Defines the result of a calculation |
| <p> | Defines a paragraph |
| <param> | Defines a parameter for an object |
| <pre> | Defines preformatted text |
| <progress>New | Represents the progress of a task |
| <q> | Defines a short quotation |
| <rp>New | Defines what to show in browsers that do not support ruby annotations |
| <rt>New | Defines an explanation/pronunciation of characters (for East Asian typography) |
| <ruby>New | Defines a ruby annotation (for East Asian typography) |
| <s> | Defines text that is no longer correct |
| <samp> | Defines sample output from a computer program |
| <script> | Defines a client-side script |
| <section>New | Defines a section in a document |
| <select> | Defines a drop-down list |
| <small> | Defines smaller text |
| <source>New | Defines multiple media resources for media elements (<video> and <audio>) |
| <span> | Defines a section in a document |
| <strike> | Not supported in HTML5. Deprecated in HTML 4.01. Defines strikethrough text |
| <strong> | Defines important text |
| <style> | Defines style information for a document |
| <sub> | Defines subscripted text |
| <summary>New | Defines a visible heading for a <details> element |
| <sup> | Defines superscripted text |
| <table> | Defines a table |
| <tbody> | Groups the body content in a table |
| <td> | Defines a cell in a table |
| <textarea> | Defines a multiline input control (text area) |
| <tfoot> | Groups the footer content in a table |
| <th> | Defines a header cell in a table |
| <thead> | Groups the header content in a table |
| <time>New | Defines a date/time |
| <title> | Defines a title for the document |
| <tr> | Defines a row in a table |
| <track>New | Defines text tracks for media elements (<video> and <audio>) |
| <tt> | Not supported in HTML5. Defines teletype text |
| <u> | Defines text that should be stylistically different from normal text |
| <ul> | Defines an unordered list |
| <var> | Defines a variable |
| <video>New | Defines a video or movie |
| <wbr>New | Defines a possible line-break |
Sunday, 25 November 2012
All HTML tags
All HTML tags
Tuesday, 6 November 2012
executing all file and directory handling commands
executing all file and directory handling commands
[root@domain30 984D-171A]# cal
October 2012
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
[root@domain30 984D-171A]# date
Fri Oct 19 19:20:27 IST 2012
[root@domain30 984D-171A]# echo "welcome to MIT"
welcome to MIT
[root@domain30 984D-171A]# printf "this is IT department"
this is IT department
[root@domain30 984D-171A]# who
MAHESH tty1 2012-10-19 19:18 (:0)
MAHESH pts/0 2012-10-19 19:19 (:0.0)
[root@domain30 984D-171A]# who am i
MAHESH pts/0 2012-10-19 19:19 (:0.0)
[root@domain30 984D-171A]# uname
Linux
[root@domain30 984D-171A]# tty
/dev/pts/0
[root@domain30 mahesh]# pwd
/mahesh
[root@domain30 mahesh]# ls
2.txt 7 fifth.sh op2.txt op.txt secound.sh sixth.sh third.sh
[root@domain30 mahesh]# ls -l
total 28
-rw-r--r--. 1 root root 19 Oct 18 14:07 2.txt
-rw-r--r--. 1 root root 0 Oct 18 14:30 7
-rw-r--r--. 1 root root 170 Oct 12 21:44 fifth.sh
-rw-r--r--. 1 root root 148 Oct 18 21:05 op2.txt
-rw-r--r--. 1 root root 148 Oct 18 14:09 op.txt
-rw-r--r--. 1 root root 667 Oct 18 21:03 secound.sh
-rwxr-xr-x. 1 MAHESH MAHESH 558 Oct 13 16:46 sixth.sh
-rwxr-xr-x. 1 MAHESH MAHESH 500 Oct 12 23:43 third.sh
[root@domain30 mahesh]# mkdir MIT
[root@domain30 mahesh]# ls
2.txt 7 fifth.sh MIT op2.txt op.txt secound.sh sixth.sh third.sh
[root@domain30 mahesh]# rmdir MIT
[root@domain30 mahesh]# ls
2.txt 7 fifth.sh op2.txt op.txt secound.sh sixth.sh third.sh
[root@domain30 mahesh]# mkdir ITSE
[root@domain30 mahesh]# mv ITSE MIT1
[root@domain30 mahesh]# cd ITSE
bash: cd: ITSE: No such file or directory
[root@domain30 mahesh]# rmdir MIT1/
[root@domain30 mahesh]# mkdir ITSE
[root@domain30 mahesh]# vim ITSE/MIT1
[root@domain30 mahesh]# ls ITSE/
MIT1
[root@domain30 mahesh]# more sixth.sh
echo "1.Display the pid of login shell "
echo "2.Display process status "
echo "3.Display detailed listing of processes "
echo "4.Display process of user "
echo "5.Display all users processes "
printf "Enter choice : "
read choice
if [ $choice == 1 ]
then
echo "PID of current shell is : $$"
fi
if [ $choice == 2 ]
then
ps
fi
if [ $choice == 3 ]
then
ps -f
fi
if [ $choice == 4 ]
then
printf "Enter user name : "
read user
ps -u $usr
fi
if [ $choice == 5 ]
then
ps -a
fi
if [ $choice == 6 ]
then
ps -e
else [ $choice > 7 ]
echo "Incorrect choice !"
fi
[root@domain30 mahesh]# file sixth.sh
sixth.sh: ASCII English text
[root@domain30 mahesh]# wc sixth.sh
41 123 558 sixth.sh
[root@domain30 mahesh]# wc -l sixth.sh
41 sixth.sh
[root@domain30 mahesh]# vim mahi.txt
[root@domain30 mahesh]# od mahi.txt
0000000 064164 071551 064440 020163 064563 070155 062554 063040
0000020 066151 005145
0000024
[root@domain30 mahesh]# cat mahi.txt
this is simple file
[root@domain30 mahesh]# cat mahi.txt
this is simple file
[root@domain30 mahesh]# cat mahi1.txt
it secound simple file
[root@domain30 mahesh]# cmp mahi.txt mahi1.txt
mahi.txt mahi1.txt differ: byte 1, line 1
[root@domain30 mahesh]# comm mahi.txt mahi1.txt
it secound simple file
this is simple file
[root@domain30 mahesh]# diff mahi.txt mahi1.txt
1c1
< this is simple file
---
> it secound simple file
[root@domain30 mahesh]# chmod 421 mahi.txt
[root@domain30 mahesh]# ls -l
total 40
-rw-r--r--. 1 root root 19 Oct 18 14:07 2.txt
-rw-r--r--. 1 root root 0 Oct 18 14:30 7
-rw-r--r--. 1 root root 170 Oct 12 21:44 fifth.sh
drwxr-xr-x. 2 root root 4096 Oct 19 19:26 ITSE
-rw-r--r--. 1 root root 23 Oct 19 19:30 mahi1.txt
-r---w---x. 1 root root 20 Oct 19 19:29 mahi.txt
-rw-r--r--. 1 root root 148 Oct 18 21:05 op2.txt
-rw-r--r--. 1 root root 148 Oct 18 14:09 op.txt
-rw-r--r--. 1 root root 667 Oct 18 21:03 secound.sh
-rwxr-xr-x. 1 MAHESH MAHESH 558 Oct 13 16:46 sixth.sh
-rwxr-xr-x. 1 MAHESH MAHESH 500 Oct 12 23:43 third.sh
shell script to perform operations on string
shell script to perform operations on string
*day.sh
#!/bin/bash
day=`date "+%a"`
if [ "$day"=="mon" ]
then
echo "weekend is over"
fi
~
OUTPUT:[root@domain30 fourth]# sh day.sh
weekend is over
*cmp.sh
#!/bin/bash
com="wipro"
if [ "$com" \< "z" ]
then
echo "the comapny name being with the letter less than z"
fi
OUTPUT:[root@domain30 fourth]# sh cmp.sh
the comapny name being with the letter less than z
*strmerg.sh
#!/bin/bash
echo "enter the first name-->"
read fst
echo "enter the last name-->"
read lst
echo "the complete string is--> $fst$lst"
OUTPUT:
[root@domain30 fourth]# sh strmerg.sh
enter the first name-->
mahesh
enter the last name-->
maske
the complete string is--> maheshmaske
*strlength.sh
#!/bin/bash
str=mahesh
echo ${#str}
echo `expr length $str`
echo `expr "$str"`
OUTPUT:
[root@domain30 fourth]# sh mahesh.sh
6
6
mahesh
system administrative commands
system administrative commands
[MAHESH@domain30 mahesh]$ pwd
/mahesh
[MAHESH@domain30 mahesh]$ su
Password: ******
[root@domain30 mahesh]#
[root@domain30 mahesh]# date
Fri Oct 19 20:40:26 IST 2012
[root@domain30 Desktop]# passwd
Changing password for user root.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@domain30 Desktop]# ulimit 20791510
[root@domain30 Desktop]# wall
i am student of SEIT
Broadcast message from root@domain30 (pts/0)(Sat Oct 13 11:03:07
i am student of SEIT
[root@domain30 mahesh]# chmod 1775 arithmetic.sh
[root@domain30 mahesh]# ls -l
total 52
-rw-r--r--. 1 root root 0 Oct 19 19:51 25
-rw-r--r--. 1 root root 19 Oct 18 14:07 2.txt
-rw-r--r--. 1 root root 0 Oct 18 14:30 7
-rwxrwxr-t. 1 root root 173 Oct 19 19:38 arithmetic.sh
-rw-r--r--. 1 root root 170 Oct 12 21:44 fifth.sh
[root@domain30 mahesh]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_domain30-lv_root
43872748 2806724 38837392 7% /
tmpfs 1935592 272 1935320 1% /dev/shm
/dev/sda5 495844 35372 434872 8% /boot
/dev/sdb1 3912656 2100 3910556 1% /media/984D-171A
[root@domain30 mahesh]# du
20 ./fourth
8 ./ITSE
76 .
shell script for total user info
shell script for total user info
#!/bin/bash
echo "my name is :"$LOGNAME
echo "my name is :"$USER
echo "my HOME DIRECTORY IS :"$HOME
echo "my WORKING SHELL IS :"$SHELL
echo "my AVALABLE PATH is :"$PATH
OUTPUT:
[MAHESH@domain30 mahesh]$ sh fifth.sh
my name is :MAHESH
my name is :MAHESH
my HOME DIRECTORY IS :/home/MAHESH
my WORKING SHELL IS :/bin/bash
my AVALABLE PATH is :/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/MAHESH/bin:/home/MAHESH/bin
shell script for arithmatic operations
shell script for arithmatic operations
#!/bin/bash
a=10
b=5
val=`expr $a + $b`
echo "a+b=" $val
val=`expr $a - $b`
echo "a-b=" $val
val=`expr $a \* $b`
echo "a*b=" $val
val=`expr $a / $b`
echo "a/b=" $val
OUTPUT:
[root@domain30 mahesh]# vim arithmetic.sh
[root@domain30 mahesh]# sh arithmetic.sh
a+b= 15
a-b= 5
a*b= 50
a/b= 2
Subscribe to:
Comments (Atom)