UNIX Sorting & Pipe System

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover the key concepts, commands, and functions from the UNIX Sorting & Pipe System lecture notes.

Last updated 3:53 PM on 10/14/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

What does 'wc' stand for and what does it do?

Word count; it reports the number of lines, words, and characters in a file.

2
New cards

What is the main function of the 'sort' command?

It sorts the lines of a file into alphabetical order.

3
New cards

What does the 'uniq' command do?

It removes duplicate copies of a line from a file, only if they are adjacent.

4
New cards

What are the three types of streams in UNIX?

stdin (input), stdout (output), and stderr (error messages).

5
New cards

How can you redirect output to a file in UNIX?

You can use the '>' operator to redirect output from stdout to a file.

6
New cards

What happens when you use '>>' in UNIX?

It appends output to a file instead of overwriting it.

7
New cards

What is the purpose of pipes in UNIX?

Pipes connect the output of one program to the input of another.

8
New cards

How do you ensure error messages are redirected to a specific file?

You can use '2>' to redirect stderr to a file.

9
New cards

What command would you use to append stderr messages to an error file?

ls /bin/doesntExist 2>> errorFile.

10
New cards

What is a key difference between 'stdout' and 'stderr'?

stdout is for normal output, while stderr is specifically for error messages.