Computer Concepts and Linux Commands: Data, Architecture, Number Systems

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/77

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

78 Terms

1
New cards

data

A collection of facts, unorganized; does not depend on information and isn't sufficient for decision making.

2
New cards

information

Puts facts into context, is organized; depends on data and is sufficient for decision making.

3
New cards

computer

A machine that transforms input into output using a program and data; can automatically carry out sequences of logical and computational operations.

4
New cards

program

A set of instructions that tells the computer how to process data.

5
New cards

computer architecture

The design and behavior of a computer system as seen by the programmer (what it does).

6
New cards

computer organization

The physical implementation of a computer (how it's built).

7
New cards

Von Neumann architecture

The Von Neumann architecture consists of a single, shared memory for programs and data, a single bus for memory access, an arithmetic unit, and a program control unit. The Von Neumann processor operates fetching and execution cycles seriously.

8
New cards

Von Neumann execution cycle

Fetch → Decode → Fetch operands → Execute → Store result → Advance instruction pointer.

9
New cards

CPU

The brain of the computer that executes instructions (arithmetic, logic, memory, I/O).

10
New cards

register

Very small, very fast memory inside the CPU for immediate data.

11
New cards

cache

Small memory close to the CPU that stores frequently used data to speed up access.

12
New cards

cache hit

When the CPU finds the needed data in cache (fast).

13
New cards

cache miss

When the CPU does not find the data in cache and must fetch it from RAM (slower).

14
New cards

main memory (RAM)

Volatile memory where data and programs must be loaded to run; cleared when power is off.

15
New cards

secondary memory

Non-volatile storage like hard drives or SSDs for permanent data.

16
New cards

buses

Communication highways that transfer data between CPU, memory, and I/O devices.

17
New cards

operating system

Software that manages hardware and runs other programs.

18
New cards

Linux

A multitasking, multi-user operating system widely used for servers and programming.

19
New cards

difference between main memory and secondary storage

Main memory (RAM): fast, volatile, temporary. Secondary storage (HDD/SSD): slower, non-volatile, permanent.

20
New cards

difference between computer architecture and organization

Architecture = what the computer does (logical design, visible to programmer). Organization = how it is physically built (hardware details).

21
New cards

difference between a three-stage pipeline and a superscalar CPU

Pipeline = splits instruction execution into stages (fetch, decode, execute) so multiple instructions overlap. Superscalar = CPU can fetch and execute multiple instructions per cycle in parallel.

22
New cards

pwd command

Prints the current working directory.

23
New cards

ls command

Lists files in a directory.

24
New cards

difference between ls, ls -a, and ls -al

ls → list visible files.

25
New cards

ls

list visible files.

26
New cards

ls -a

list all files, including hidden (. files).

27
New cards

ls -al

list all files with detailed information (permissions, owner, size, date).

28
New cards

cd command

Changes the current directory.

29
New cards

cp command

Copies a file.

30
New cards

mv command

Moves or renames a file.

31
New cards

rm command

Removes a file.

32
New cards

mkdir

Creates a new directory.

33
New cards

rmdir

Removes a directory.

34
New cards

more command

Displays file contents page by page.

35
New cards

less command

Displays file contents with backward/forward navigation.

36
New cards

cat command

Displays the entire contents of a file without paging.

37
New cards

tail command

Shows the last 10 lines of a file.

38
New cards

man command

Displays the manual/help page for a command.

39
New cards

who command

Shows who else is logged on.

40
New cards

clear command

Clears the terminal screen.

41
New cards

. in Linux

Refers to the current directory.

42
New cards

.. in Linux

Refers to the parent directory (one level up).

43
New cards

emacs filename

Opens a file in Emacs.

44
New cards

Ctrl-x Ctrl-s

Saves a file in Emacs.

45
New cards

Ctrl-x Ctrl-c

Quits Emacs.

46
New cards

Ctrl-x u

Undoes in Emacs.

47
New cards

Ctrl-k

Deletes (kills) a line in Emacs.

48
New cards

Ctrl-y

Pastes (yanks) text in Emacs.

49
New cards

gcc filename.c -o outputname

Compiles a C program in Linux.

50
New cards

./outputname

Runs a compiled C program.

51
New cards

number representation in computers

The method of encoding numbers (integers, fractions) in binary so the computer can store and process them.

52
New cards

binary

Base-2 numbering system using only 0 and 1.

53
New cards

decimal

Base-10 numbering system using digits 0-9.

54
New cards

hexadecimal

Base-16 numbering system using 0-9 and A-F.

55
New cards

convert decimal to binary

Divide the decimal number by 2 repeatedly; write remainders in reverse order.

56
New cards

convert binary to decimal

Sum powers of 2 corresponding to positions of 1s.

57
New cards

range of an n-bit unsigned number

0 to (2ⁿ − 1)

58
New cards

overflow

When a calculation exceeds the range that can be represented with the given number of bits.

59
New cards

three stage pipeline vs superscalar cpu

A comparison of CPU architectures where a three-stage pipeline processes instructions in three separate stages while a superscalar CPU can execute multiple instructions per cycle using multiple pipelines.

60
New cards

command to copy the file /home/temp/marvel.txt to the directory IronMan

The command to copy a file in Linux is cp /home/temp/marvel.txt IronMan/.

61
New cards

command to move into the directory IronMan

The command to change to a directory in Linux is cd IronMan/.

62
New cards

command to list the files in the IronMan directory

The command to list the files in a directory in Linux is ls IronMan/.

63
New cards

command to remoev the file called marvel.txt

The command to remove a file in Linux is rm /home/temp/marvel.txt.

64
New cards

command to move back up one directory

The command to navigate to the parent directory in Linux is cd ...

65
New cards

time multiplexing

is a technique in computing that allows multiple processes to share the same time resources effectively, giving the appearance of simultaneous execution. It involves dividing the CPU time into segments, allowing each process a fraction of the processor's time.

66
New cards

space multiplexing

a method that allows multiple signals to share the same communication channel, improving efficiency by alternating between them. enables multiple data streams to occupy the same channel by allocating distinct physical resources to each signal, enhancing throughput and reducing bandwidth waste.

67
New cards

little endian

is a storage format for data where the least significant byte is stored first, allowing for easier interpretation of data values in certain architectures.

68
New cards

big endian

is a data storage format that stores the most significant byte at the lowest memory address, making it easier for humans to read data. This contrasts with "little endian," where the least significant byte is stored first.

69
New cards

where is the lsb (right or left?) little endian

The least significant byte (LSB) is stored on the right in little endian format, enabling efficient data processing in certain architectures.

70
New cards

where is the lsb (right or left?) big endian

The least significant byte (LSB) is stored on the left in big endian format, which aligns with how humans typically read numbers.

71
New cards

read, write, execute values are what numbers?

read is 4, write is 2, execute is 1

72
New cards

control characters

0 - 31

73
New cards

decimal digits

48-57

74
New cards

uppercase letters

65-90

75
New cards

lowercase letters

97-122

76
New cards

storing images in memory (pixels)

Refers to the representation of digital images using pixels, where each pixel's color and intensity are stored in memory.

<p>Refers to the representation of digital images using pixels, where each pixel's color and intensity are stored in memory. </p>
77
New cards

8 bit color

A color depth that allows 256 different colors to be represented in an image. This is achieved by using 8 bits per pixel.

3 bits red, 3 bits green, 2 bits blue

78
New cards

24 bit color

A color depth that allows over 16 million different colors to be represented in an image, achieved by using 8 bits each for red, green, and blue channels.

16,777,216 color variations