In a command such as cat access.log | grep 404, what does the | symbol do?
Dans une commande comme cat access.log | grep 404, que fait le symbole | ?
Answers
AIt runs the two commands on two different computersIl exécute les deux commandes sur deux ordinateurs différents
BIt saves the output to a file named grepIl enregistre la sortie dans un fichier nommé grep
CIt runs the second command only if the first one failsIl n'exécute la seconde commande que si la première échoue
DIt sends the first command's output into the secondIl envoie la sortie de la première commande dans la seconde
The answer and explanation are in the full bank.
This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.
Unlock for 5,000 RWFMIFOTRA exam practicealigned to Practice set: Linux and CMD Commands·1 mark·Easy
More Operating Systems questions
- You need to print the whole contents of a file. Which command does that?
- What does the Linux command `uname` do?
- What does the Linux command `chmod` do?
- On a Linux system, what does /boot contain?
- What does the Linux command `ping` do?
- What does the Linux command `ps` do?
- What does the Linux command `tar` do?
- You need to search a directory tree for files matching criteria. Which command does that?