DSSSB TGT CS 2023 Shift 2 – Question 135

Question:

Which of the following is NOT an input/output redirection symbol that Linux shell assigns?

निम्न में से कौन सा एक इनपुट/आउटपुट रीडायरेक्शन सिंबल नहीं है जिसे लिनक्स शेल असाइन करता है?

Options:

  • <
  • >
  • >>
  • !
  • <
  • >
  • >>
  • !

Correct Answer: d)

Explanation:

In Linux/Unix shells:
– `<` is used for **standard input redirection** (redirects input from a file).
– `>` is used for **standard output redirection** (overwrites stdout to a file).
– `>>` is used for **standard output append redirection** (appends stdout to a file).
– `!` is used for **history expansion** (e.g., `!!` reruns the last command, `!string` runs the most recent command starting with ‘string’), not for I/O redirection.

Therefore, **!** is NOT an input/output redirection symbol.

लिनक्स शेल में इनपुट/आउटपुट रीडायरेक्शन सिंबल:
– `<`: इनपुट रीडायरेक्शन (इनपुट फ़ाइल से लेने के लिए)।
– `>`: आउटपुट रीडायरेक्शन (फ़ाइल में नया डेटा ओवरराइट करने के लिए)।
– `>>`: आउटपुट अपेंड रीडायरेक्शन (फ़ाइल के अंत में डेटा जोड़ने के लिए)।
– `!`: यह हिस्ट्री एक्सपैंशन (History expansion) ऑपरेटर है (जैसे `!!` पिछले कमांड को दोहराने के लिए), यह I/O रीडायरेक्शन सिंबल नहीं है।

अतः **!** रीडायरेक्शन सिंबल नहीं है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top