UNIX: Sorting & Pipe System

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts from the UNIX Sorting & Pipe System lecture, including commands (wc, sort, uniq), input/output streams (stdin, stdout, stderr), and redirection/piping operators.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

wc (word count)

A Unix tool that reports the number of lines, words, and characters in a file, typically used with text files.

2
New cards

sort

A Unix command that sorts the lines of a file into alphabetical (or other specified) order.

3
New cards

uniq

A Unix command that removes duplicate copies of adjacent lines from a file.

4
New cards

Input (Unix)

Everything a Unix program reads, usually from the keyboard (what you type).

5
New cards

Output (Unix)

Everything a Unix program writes, usually to the screen (what you see).

6
New cards

stdin (standard input)

The input stream from the keyboard, where programs typically expect user input.

7
New cards

stdout (standard output)

The output stream to the screen, where the results of a running program are displayed.

8
New cards

stderr (standard error)

The output stream for error messages, which also appear on the screen but can be separated from normal output.

9
New cards

(output redirection)

A redirection operator that sends all output normally going to stdout into a specified file, completely overwriting its contents or creating a new file.

10
New cards
< (input redirection)

A redirection operator that makes all input for a program come from a specified file instead of the keyboard.

11
New cards

(output append redirection)

A redirection operator that appends all output of a program to a specified file. It will create the file if it doesn't exist but will not overwrite existing information.

12
New cards

2> (stderr redirection)

A redirection operator specifically used to send error messages (stderr) to a specified file.

13
New cards

0 (stream identifier)

Represents stdin (standard input) in Unix stream notation.

14
New cards

1 (stream identifier)

Represents stdout (standard output) in Unix stream notation.

15
New cards

2 (stream identifier)

Represents stderr (standard error) in Unix stream notation.

16
New cards

| (pipe operator)

An operator in Unix that feeds the stdout of one program as the stdin to another program, chaining commands together.