Q. Conditional statements को दर्शाने के लिये शैल programming लिखिये।Ans.Bash में निम्लिखित कंडीशनल स्टेटमेंट्स है –<![if !supportLists]> 1) <![endif]> if..then..fi statement (Simple If)<![if !supportLists]> 2) <![endif]> if..then..else..fi statement (If-Else)<![if !supportLists]> 3) <![endif]> if..elif..else..fi statement (Else If ladder)<![if !supportLists]> 4) <![endif]> if..then..else..if..then..fi..fi..(Nested if) <![if !supportLists]> 1) <![endif]> Bash If..then..fi statementSyntax:if [ conditional expression ]then statement1 statement2Fi Example: <![if !supportLists]> 2) <![endif]> Bash If..then..else..fi statement Syntax: If [ conditional expression ]then statement1 statement2else statement3 statement4FiExample: <![if !supportLists]> 3) <![endif]> Bash If..elif..else..fi Syntax: If [ conditional expression1 ]then statement1 statement2elif [ conditional expression2 ]then statement3 statement4else statement5fiExample: <![if !supportLists]> 4) <![endif]> Bash If..then..else..if..then..fi..fi.. Syntax:If […]
Category: Linux
Program parameter passing in shell script
Q. शैल programming मे parameter किस प्रकार से पास करते है? समझाइये ।ORशैल programming मे parameter और agreement को उदाहरण सहित विस्तार से समझाइये ।Ans. शैल स्क्रिप्ट मे पैरामीटर को पास करने के लिए सर्वप्रथम शैल स्क्रिप्ट क्रिएट करते है| शैल स्क्रिप्ट क्रिएट करने के बाद जब उसे कमांड लाइन पर रन करते है तब सर्वप्रथम स्क्रिप्ट का नेम टाइप करते है एवं उसके बाद जो पैरामीटर पास करने […]
Program to expain ps commands
Q. Write a program to explain PS command ?Ans.Ps कमांड active processes को दिखाती है |Syntax:ps कमांड का syntax निम्नलिखित है –ps [option] कुछ basic ps कमांड्स निम्नलिखित है –1`) Displays all processes on a terminal, with the exception of group leaders.Ps –a 2) Displays scheduler data.Ps –c 3) Displays all processes with the exception of session […]
RGPV Diploma: Linux Unit 4
RGPV Diploma: Linux: Unit 4 Q1. शैल को परिभाषित किजिये ? Or शैल क्या है? किस प्रकार से यह kernel से भिन्न है, समझाइये ? OR शैल को समझाइये ? OR Linux मे उपलब्ध विभिन्न प्रकार के शैल को सम्झाइये ? OR शैल क्या है? शैल kernel से किस प्रकार से भिन्न है? शैल […]
RGPV Diploma: Linux Unit 6
UNIT 6 Q1. Client एवम् server कि अवधारणा को समझाइये ? OR Client /server मॉडल से आपका क्या अभिप्राय है? क्लाइंट्स तथा सर्वर, विभिन्न मशीन या एक ही मशीन पर दो लॉजिकल एंटिटी होती है | क्लाइंट प्रोग्राम,सर्वर के पास रिक्वेस्ट सेंड करता है तथा सर्वर प्रोग्राम, क्लाइंट की रिक्वेस्ट का रिस्पांस देता है| क्लाइंट […]
RGPV diploma: linux unit 5
LINUX UNIT 5 Q1. System administrator को समझाइये । OR System administrator के role पर संक्षिप्त टिप्पणी लिखिये। OR एक कार्यरत Linux system के रखरखाव मे सम्मलित सामान्य प्रबंधन कार्य क्या क्या है? OR Linux system के रखरखाव के लिए सामान्य प्रबन्धन कार्य कोन कोन से है? OR System administrator क्या है? इस्के उत्तर्दायित्वो को लिखिये। OR System administrator के विभिन्न roles को समझाइये । OR System administrator कोन से सामान्य administrative कार्य करता है? OR System administrator के विभिन्न roles क्या है? OR System administrator कि भुमिका को समझाइये ? OR System administrator से आप क्या समझते है? System administrator के विभिन्न roles लिखिये। Ans. सिस्टम एडमिनिस्ट्रेटर या फिर सिस्टम एडमिन एक व्यक्ति होता है | यह एक ऐसा व्यक्ति होता है जो की कंप्यूटर सिस्टम […]
RGPVDiplomaLinux: Unit 1
LINUX UNIT 1 Q 1 लिनक्स की शुरूआत कब हुई ? समझाइए | Ans. लिनक्स की शुरुआत 1990 में हुई थी | लिनक्स को लिनस तोरवेल्ड्स ने बनाया था | उन्होंने 5 अक्टूबर सन 1991 को लिनक्स का पहला वर्जन रिलीज किया था | इसके बाद लिनक्स को डेवलप करने में कैलिफोर्निया के ट्रांसमेंटा […]
Conditional statements in Linux
Some of the conditional statements in Linux are- 1) if..then..fi statement (Simple If)2) if..then..else..fi statement (If-Else)3) if..elif..else..fi statement (Else If ladder)4) if..then..else..if..then..fi..fi..(Nested if 1) Bash If..then..fi statementSyntax:if [ conditional expression ]then statement1 statement2Fi 2) Bash If..then..else..fi statementSyntax:If [ conditional expression ]then statement1 statement2else statement3 statement4Fi Example: 3) Bash If..elif..else..fiSyntax:If [ conditional expression1 ]then statement1 statement2elif […]
Shail in Linux
Shail is an interface between user and computer. Shail gives user a platform to write their commands.Some of the uses of Shail are- Shail is used as interface between user and kernel (Computer). Shail is used to execute the command. Shail is used to write Shail script. Difference between Shail and Kernel – Kernel Shail […]
Tee
With pipe tee commands is used. Tee reads data from input source and and write it to another file. Syntax of tee command is : tee [OPTION] fileName. For example:$ echo “Professor Jayesh” | tee jayesh In above example, tee command write the ‘Professor Jayesh’ in file ‘jayesh’. In above example we seen that when we […]