Showing posts with label Unix Concepts & Shell Programming. Show all posts
Showing posts with label Unix Concepts & Shell Programming. Show all posts
📌Highlights: In this post we will learn about shell programming basic. This post cover so many basic commands which is useful in programming such as comparing string using if statement,different format of if statement, display date & time, use of cut command, type of condition used in shell programming, how to read variable name, Use of case statement, Use of while and Until condition.
📌Highlights: In this post we will learn about shell programming basic. This post cover so many basic commands which is useful in programming such as how we declare variable in shell program, display value of variable, how logical operator used in program, type of Relational operators, how we compare two strings, syntax of if statement with example, how for statement is used and their syntax.
📌Highlights: In this post we know about the shell programming basic. This post cover so many basic commands which is useful in programming such as about editor ,type of mods , how deleting files, how cut/copy/paste file contents, how store in buffer, how find /replace files, how insert blank line in file.
Can we create file in another directory in UNIX ?
Let we understand by the help of example.
Suppose we have two user Raj and Anil. Privilege of Raj is 700 and Privilege of Anil is 777.
here , 700 means ( _ r w_ _ _ _ _ _ _ ) only read write permission. and
777 means ( _ r w x r w x r w x ) all permission.
As we know that :
_ : No permission
r : Only read permission
w : Only write permission
x : Only execution is permitted.
So Raj have only read/write for owner and no other permission for group member and others. Anil have all permission for owner,group and others.
In this post we discuss following Unix Commands.
$ pg filename
$ head -n filename
$ tail -n filename
$ file file(s)
$ grep option string file(s)
Concept of Pipeline :
If we want to run more than one command in one statement than we use pipeline concept. In pipeline output of one pipe is input of another pipe. It is represented by ( | ).
$ who | wc -l
$ who | grep amit| wc -l
$ who | grep amit | tee aa | wc -l
For Read Detail and More Commands Click here
In this post we describe basic commands of UNIX. These commands are very useful for managing UNIX system. These commands are useful for shall programming. $ symbol is used to write any command such as $ who. We explain commands with description and example so that you can understand easily.These commands are very useful. Commands such as who, date, cal, man, mv, rm, sort, wc Read More..
Unix is an multi user operating system. This operating system provide security to users. Each user work on their shall. Shall is basically work area where user can work. Each Shall in Unix is protected from user id and password that means no any unauthorised user can access that area. Now there are so many commands for managing Unix system such as who, data, cat, mkdir, mv, rmdir, pg, head, tail, grep etc. There are so many other commands are available which is helpful for operating Unix operating System.