Shell Command Output Redirection

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Was entspricht die Kombination 'rw-' in binärer Form?

  • 010
  • 100
  • 110 (correct)
  • 101

Welcher Datenstrom ist üblicherweise mit der Tastatur des Terminals verbunden?

  • Standardeingabe (stdin) (correct)
  • Standardfehler (stderr)
  • Standardausgabe (stdout)
  • Zwischenspeicher (cache)

Welche binäre Zahl entspricht der Kombination '-wx'?

  • 110
  • 001
  • 011 (correct)
  • 101

Was ruft die printf() Anweisung in einem C-Programm auf?

<p>write() (B)</p>
Signup and view all the answers

Welche Befehlsabfolge wird verwendet, um die Zugriffsrechte einer Datei auf 700 zu setzen?

<p>chmod 700 dateiname (D)</p>
Signup and view all the answers

Welche Funktion wird verwendet, um einen Prozess in Linux zu erstellen?

<p>fork() (C)</p>
Signup and view all the answers

Welche Funktion wird in Windows verwendet, um eine Datei zu lesen?

<p>ReadFile() (A)</p>
Signup and view all the answers

Welche Systemcall-Funktion wird verwendet, um eine Pipe (Puffer Datenstrom zwischen Prozessen) in Linux zu erstellen?

<p>pipe() (B)</p>
Signup and view all the answers

Was bewirkt der Befehl 'ls /home/* 2>/dev/null'?

<p>Er leitet die Fehlerausgabe von 'ls /home/*' in die Datei '/dev/null' um. (C)</p>
Signup and view all the answers

Was passiert, wenn der Befehl 'cat test' ausgeführt wird?

<p>Der Inhalt der Datei 'test' wird auf dem Bildschirm ausgegeben. (D)</p>
Signup and view all the answers

Was bewirkt der Befehl 'echo hallo > test'?

<p>Er leitet die Standardausgabe des Befehls 'echo hallo' in die Datei 'test' um. (B)</p>
Signup and view all the answers

Was bewirkt das Pipe-Operator '|' in Unix?

<p>Es verbindet den Standardausgabestrom eines Prozesses mit dem Standardeingabestrom eines anderen Prozesses. (B)</p>
Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

shell scripting
21 questions

shell scripting

CalmSerpentine8789 avatar
CalmSerpentine8789
Bash Input Commands Quiz
10 questions

Bash Input Commands Quiz

BuoyantMolybdenum avatar
BuoyantMolybdenum
BASH Shell: Input/Output and Shell Scripts
80 questions
Use Quizgecko on...
Browser
Browser