UNIX COMMANDS :-
· ‘who’ – To list a number of users who logged in the system.
· ‘who am I’ – To know your id.
· Cat>filename – To create an file
· $clear – To clear the screen.
· $cp__ – copies the file to (filename1-source file,filename2-destination file)
· $mv__ – to rename the file< filename1> to
· $rm_ – to remove the file
· $rm_-i- – to remove the file but in interactively user friendly manner
LISTING OF FILES :-
· Wild card characters: ‘?’ replaces 1 character
· ‘*’ – replaces none, one or more characters
· ‘[]’- or [ abc ] – replaces or lists filename beginning with a or b or c.
· $ls – lists the file
· $ls_-a – lists the file including hidden files
· $ls_??? – lists filename which has 3 characters
· $ls_a?a – lists filename which has 3 characters and second character must be (a)
· $ls_a* - lists filename beginning with (a) ex: a,a1,a12......
· $ls_*a* - it can end and begin with any character but the middle character must be a
· $ls_[abc]* - it starts with a or b or c followed by ‘n’ number of characters
· $ls_[!aeiou]* - lists file name which does not begin with a vowel (! = should not)
MORE COMMANDS :-
· $cal – to display the calendar
· $cal – 2 2010 [February 2010]
· $date – display the login name of the user
· $uname – display name of the system
· $vname – display additional information
· $tty – display name of the terminal
· $wc_lwc - counts the number of words/characters of a given file
· $wc_-lc - displays only characters and lines
· $file_* - displays the type of files
· $pid – processes which is running
· $mk dir
· $rm
· $cd.. - goes one level higher
· $cd/ - to go to root directory
· $cd – to go to home directory
· $rm_-r - to remove the contents of directory and directory itself at one short
· $mv - to move the contents of filename1 to filename2
· $pg - to see the contents pagewise
· $head_-10 - to see the first 10 lines of the file
· $tail_-10 – to see the last 10 lines of the file
· $mkdir –p - to make the folder at one go
· $rmdir –p - to remove the folder
· $file * - to display al types of file
· $cat - to display the contents of more than one file at a time
· $cat >> - to append filename1 to filename2
· $cat >> - to append two files to one file
FILTER | PURPOSE | |
1. | cat | Concatenates and displays files |
2. | pg | Paginates display for terminals |
3. | more | Displays a file one screen-full at a time |
4. | head | Prints the first few lies of a file |
5. | tail | Displays the last few lines of a file |
6. | grep | Searches files for a pattern |
7. | sort | Sorts and merges files |
8. | wc | Counts number of lines, words and characters in a file |
9. | uniq | Reports unique lines in a file |
10. | tr | Translates characters in a file |
11. | cut | Cuts out selected columns and fields of a file |
12. | paste | Merges lines of files (horizontal merging) |
13. | nl | Adds line numbers to a file |
14. | pr | Prints files to standard output |
15 | lpr | Sends requests to line printer |
SORT FILTER | ||
OPTIONS | MEANING | |
1. | -b | Ignores leading spaces and tabs |
2. | -c | Checks if files are already sorted. If they are, sort does nothing |
3. | -d | Sorts in dictionary order |
4. | -f | Ignores case |
5. | -m | Merges files that have already been sorted |
6. | -n | Sorts in numeric order |
7. | -o file | Stores output in file The default is to send output to standard output |
8. | -r | Reverses sort |
9. | -tc | Separates fields with delimitor character (default tab) |
10. | -u | Unique output |
11. | +n -m | Skips n fields before sorting and then sorts on field m |
GREP FILTER | ||
OPTIONS | MEANING | |
1. | -c | Returns only the number of matches, without quoting the text (count) |
2. | -i | Ignores case while searchin |
3. | -l | Returns only filenames containing a match without quoting the text |
4. | -n | Returns line numbers of matched texts as well as the text itself |
5. | -s | Suppresses error messages |
6. | -v | Returns lines that do not match the text |
RELATIONAL OPERATORS | ||
1. | > | -gt |
2. | < | -lt |
3. | >= | -ge |
4. | <= | -le |
5. | == | -eq |
6. | != | -ne |
LOGICAL OPERATORS | ||
1. | and | -a |
2. | or | -o |
3. | not | ! |
ARITHMETIC OPERATORS | ||
1. | Addition | + |
2. | Subtraction | - |
3. | Multiplication | \* |
4. | Division | / |
5. | Modulus | % |
Writing a unix shellscript program:-
· $vi .sh – to create a unix file
· ‘echo’ – to print the statements/output on the screen
· ‘read’ – to take the contents/inputs from the keyboard
· :wq! – to save the file
· $sh - to run shellscript program
· bc – best calculator
· # - to insert comments
FORMS OF IF STATEMENT
If
Syntax:
if [ control command ]
then
Statement1
fi
If else
Syntax:
if [ control command ]
then
Statement1
else
Statement2
fi
If else ladder
Syntax:
if [ control command 1 ]
then
Statement1
else
if [ control command 2 ]
then
Statement2
else
Statement3
fi
fi
NESTED IF
Syntax:
if [ control command 1 ]
then
Statement1
if [ control command 2 ]
then
Statement2
else
Statement3
fi
else
fi
ELIF STRUCTURE
Syntax:
if [ control command 1 ]
then
Statement1
elif [ control command 2 ]
then
Statement2
elif [ control command 3 ]
then
Statement3
else
Statement4
fi
CASE CONTROL STRUCTURES
Until statement
Syntax:
until [ control statement ]
do
Statement 1
Statement 2 …
Statement N
done
For Loop
Syntax:
1. for ((initialization, condition, update))
do
Statement 1
Statement 2 …
Statement N
done
2. for control-variable n value1 value2 value3
do
Statement 1
Statement 2 …
Statement N
done
CASE ESAC CONTROL STRUCTURES
Case value in
1)
do this
and this
;;
2)
do this
and this
;;
3)
do this
and this
;;
*)
do this
;;
esac
23 comments:
i want c language progams
your content is superyar
Very informative article.Thank you author for posting this kind of article .
http://www.wikitechy.com/view-article/four-types-of-case-control-statements-in-c-language
Both are really good,
Cheers,
Venkat
The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
Digital Marketing online training
full stack developer training in pune
full stack developer training in annanagar
Good most useful information for beginners
Read all the information that i've given in above article. It'll give u the whole idea about it.
python training in OMR
python training in Bangalore
python training in rajajinagar
Python training in btm
Python training in usa
Thanks for such a great article here. I was searching for something like this for quite a long time and at last I’ve found it on your blog. It was definitely interesting for me to read about their market situation nowadays.
Blueprism training in Pune
Blueprism online training
Blue Prism Training in Pune
It is better to engaged ourselves in activities we like. I liked the post. Thanks for sharing.
Data Science training in kalyan nagar | Data Science training in OMR
selenium training in chennai | Data Science training in chennai
Data science training in velachery | Data science online training
I would really like to read some personal experiences like the way, you've explained through the above article. I'm glad for your achievements and would probably like to see much more in the near future. Thanks for share.
java training in omr | oracle training in chennai
java training in annanagar | java training in chennai
Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries. I want to say thanks for great sharing.
angularjs-Training in pune
angularjs-Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
Microsoft Azure online training
Selenium online training
Java online training
Java Script online training
Share Point online training
It is really amazing post. Thanks for sharing this post
AngularJS Training in Chennai | AngularJS Training in Anna Nagar | AngularJS Training in OMR | AngularJS Training in Porur | AngularJS Training in Tambaram | AngularJS Training in Velachery
I gathered lots of information from your blog and it helped me a lot. Keep posting more.
Oracle Training | Online Course | Certification in chennai | Oracle Training | Online Course | Certification in bangalore | Oracle Training | Online Course | Certification in hyderabad | Oracle Training | Online Course | Certification in pune | Oracle Training | Online Course | Certification in coimbatore
Thanks for a great tips, This would be a different idea from the routine tips.keep it up!!
android training in chennai
android online training in chennai
android training in bangalore
android training in hyderabad
android Training in coimbatore
android training
android online training
Such an interesting article on the recent talks in the software industry, hope this article helps everyone to update yourself.
Angular js Training in Chennai
Angular js Training in Velachery
Angular js Training in Tambaram
Angular js Training in Porur
Angular js Training in Omr
Angular js Training in Annanagar
This is an amazing post. Very informative and expressed in a precise way. Its a must recommend post! thanks for such a great content! Loved reading it
Selenium Training in Chennai
Selenium Training in Velachery
Selenium Training in Tambaram
Selenium Training in Porur
Selenium Training in Omr
Selenium Training in Annanagar
It¦s truly a nice and helpful piece of info. I am satisfied that you simply shared this helpful information with us. Please keep us informed like this. Thanks for sharing.
amazon web services aws training in chennai
microsoft azure course in chennai
workday course in chennai
android course in chennai
ios course in chennai
If Big Data is a job that you're dreaming of, then we, Infycle are with you to make your dream into reality. Infycle Technologies offers the best Big Data Course Chennai, with various levels of highly demanded software courses such as Java, Python, Hadoop, AWS, etc., in 100% hands-on practical training with specialized tutors in the field. Along with that, the pre-interviews will be given for the candidates, so that, they can face the interviews with complete knowledge. To know more, dial 7502633633 for more.Big Data Training in Chennai
Set your career towards Amazon Web Services with Infycle Technologies, the best software training center in Chennai. Infycle Technologies gives the combined and best Big AWS Training in Chennai, along with the 100% hands-on training guided by professional teachers in the field. In addition to this, the interviews for the placement will be guided to the candidates, so that, they can face the interviews without struggles. Apart from all, the candidates will be placed in the top MNC's with a great salary package. To get it all, call 7502633633 and make this happen for your happy life.
http://infycletechnologies.com/aws-training-in-chennai/
Set your career goal towards Oracle for a wealthy future with Infycle. Infycle Technologies is the best Oracle training institute in Chennai, which gives the most trusted and best Oracle Training in hands-on practical training that will be guided by professional tutors in the field. In addition to this, the mock interviews will be given to the candidates, so that, they can face the interviews with full confidence. Apart from all, the candidates will be placed in the top MNC's with a great salary package. To get it all, call 7502633633 and make this happen for your happy life.
Python Training in Chennai | Infycle Technologies
If Python is a work you've always wanted, we at Infycle are here to help you make it a reality. Infycle Technologies provides Python Training in Chennai, with various levels of highly sought-after software courses such as Oracle, Java, Python, Big Data, and others, delivered through 100% hands-on practical training with industry experts. In addition, mock interviews will be conducted. For more details contact 7502633633 to grab a free demo.
Best Python Training in Chennai
Title:
Big Data Hadoop Training in Chennai | Infycle Technologies
Description:
Did you want to set your career towards Big Data? Then Infycle is with you to make this into reality. Infycle Technologies gives the combined and best Big Data Hadoop Training in Chennai, in 100% hands-on training guided by specialized trainers in the field. In addition to this, the mock interviews will be given to the candidates, so that they can face the interviews with complete confidence. Apart from all, the candidates will be placed in the top MNC's with a great salary package. To get it all, call 7502633633 and make this happen for your happy life.
Big data Hadoop traiining in Chennai
Infycle Technologies is the best software training institute in Chennai and is widely known for its excellence in giving the best software training in Chennai. Providing quality software programming training with 100% assured placement & to build a strong career for every individual and young professionals in the IT industry is the ultimate aim of Infycle Technologies. Apart from all, the students love the 100% hands-on training, which is the specialty of Infycle Technologies. To proceed your career with a solid base, reach Infycle Technologies through 7502633633.
BEST TRAINING IN CHENNAI
Post a Comment