UNIX/Linux Quiz 1

studied byStudied by 6 people
5.0(1)
Get a hint
Hint

Ada Lovelace (1852)

1 / 35

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

36 Terms

1

Ada Lovelace (1852)

Regarded as the first computer programmer

New cards
2

Charles Babbage (1871)

  • First digital computer

New cards
3

Alan Turing (1954)

  • Created the Enigma Code Breaker for WWII

  • Turing machine – Every computer program.

  • Turing Test – How to define intelligence?

    • Artificial Intelligence

New cards
4

John von Neumann (1957)

Von Neumann Architecture

New cards
5

Analog vs. Digital

  • Analog: continuous computing

    • floating point numbers: an approximation of an infiinite amount of values; constant computing

    • values between on/off, more precuse

    • mechanical

  • Digital: switches like on/off, 1/0, high/low

    • transistors

New cards
6

programming languages

  • Interpreted or Compiled

    • Slow vs. Fast

    • Intuitive vs. Less intuitive

    • Python interpreted vs. C/C++ compiled

  • Abstraction

    • High-level-language: Python/C++

    • Assembly: Fundamental instructions

    • Machine Code: Binary (Ewww!)

New cards
7

UNIX

  • created in 1969 and originally written in Assembly

New cards
8

Linux

  • UNIX-like

  • Created by Linus Torvalds in 1991

  • Focus on Linux with Ubuntu

New cards
9

4 components

  • Hardware

    • CPU, Memory, Storage, I/O Devices, etc.

  • Kernel

    • Drivers, memory management, process handling, security, etc.

  • Shell/Commandline (what we are focusing on)

    • Bash, Zsh, etc.

  • Software

    • GUI (Graphical User Interface), etc.

New cards
10

opening and closing the terminal

  • ‘ctrl + alt + t’ opens on some linux displays

  • ‘exit’ - exits the terminal or session

  • ‘tab’ - attempt to autocomplete and shows matching pattern

  • ‘up’ or ‘down’ arrow keys - see recent commands

New cards
11

Directory

like a folder on your computer

New cards
12

File

file, like you are used to but in purely TEXT format

New cards
13

File system

the structure/hierachy of all files and directories

New cards
14

Parent

up or proceding folder/directory

New cards
15

child

down or after folder/directory

New cards
16

working directory

where you are currently located in the file system

New cards
17

gedit command

opens a plain text file in the terminal

New cards
18

commandline interface

the name for the Terminal interface software

New cards
19

path

the locations of a file or directory in the file system’s heirarchy; the way/directions to get to some file

  • ‘.’ - single dot refers to place you currently located

  • ‘..’ - referes to the parent or upper directory

  • ~ tilde refers to home directory

  • dont have to use / for pathway when file is already in that area or folder

New cards
20

root directory

the highest level/top of the file system; can be accessed by typing ‘/’

New cards
21

home directory

where all your personal files and directories live called

  • use ~ to open a terminal in your home directory

New cards
22

ls (list)

  • use along with a path to list the files/directories of that location

  • terminal command do we use to show files/directories

  • ‘ls ..’ lists the contents of parent

  • ‘ln path’ lists the contents of specified directory

New cards
23

pwd (print working directory)

to get the exact location where you are in the file system we use to see our current global/absolute location.

New cards
24

cd (change directory)

  • use along with a path to move around in the file-system

  • this terminal command is the same as double-clicking on a folder/directory in the GUI to navigate around from one folder/directory to another

  • can type ‘cd ..’ to go to the previous two directories that we had

  • ‘cd .’ to go to parent

  • cd path for specific path

New cards
25

mv (move)

command to move a file to another location in the file-system or rename the file

<p>command to move a file to another location in the file-system or rename the file</p>
New cards
26

cp (a copy)

command to duplicate a file and optionally rename the file at the same time

(srcfile = sourcefile)

<p>command to duplicate a file and optionally rename the file at the same time</p><p>(srcfile = sourcefile)</p>
New cards
27

mkdir dirname (make directory)

creates a directory named dirname in the current working directory

New cards
28

touch filename

creates an empty file or updates timestamp

New cards
29

cat filename

prints the entire contents of file to the terminal

New cards
30

less filename

interactively view a file, use up and down arrows and q to quit

New cards
31

view filename

same as less but in a text editor. type :q and enter to quit

New cards
32

man command (manual)

gives you a detailed list and explanation of the command that you manned

New cards
33

clear

clears the terminal

New cards
34

echo

prints what you give it to stdout (standard output) by default

ex. echo hello world

New cards
35

rm (remove)

rm filename deletes a file

NONREVERSIBLE!!!!

New cards
36

global/absolute pathway

the permanent pathway of where something is

path always begins from the absolute start of your hard drive and describes every step you must take through the filesystem to end up at the target location

New cards

Explore top notes

note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 167 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 63 people
... ago
5.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 39757 people
... ago
4.9(215)

Explore top flashcards

flashcards Flashcard (28)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (89)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (76)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 72 people
... ago
5.0(3)
flashcards Flashcard (22)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 34 people
... ago
5.0(3)
flashcards Flashcard (67)
studied byStudied by 17 people
... ago
5.0(1)
robot