mini exam 1

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

1/93

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:28 PM on 8/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

94 Terms

1
New cards

print

display program output

2
New cards

debug

find and fix program errors

3
New cards

shell

in unix, the primary end-user, command-line interface to the system is a program called

4
New cards

unix system

computer systems that provide a unix environment

5
New cards

operating system

primary piece of software on most computers, a program or collection of programs that manage the computer’s resources for its users and the other programs that those users run

6
New cards

$

represents the prompt

7
New cards

ssh

secure shell comand

8
New cards

pwd

print the absolute path of the current working directory

9
New cards

absolute path of home directory

/home/myid/username

10
New cards

/

represents the root directory of the system, an absolute path always starts with this

11
New cards

print

print the system date and time

12
New cards

exit

exit the currrent shell

13
New cards

whoami

print the user name associated with the current user

14
New cards

ssh user@hostname

start a secure shell connection to hostname and login as user

15
New cards

ls

list contents of the current working directories

16
New cards

ls PATH

list contents of the last directory in the provided PATH

17
New cards

tree PATH

list contents of the last directory in the provided PATH and its subdirectories, in a tree format

18
New cards

ls -l

ls uses long listing formats

19
New cards

ls -l -h

ls uses long listing format with human-readable size units

20
New cards

cd

home directory

21
New cards

cd -

last previous working directory

22
New cards

cd a/b/dest

dest, assuming a is in the current directory and a/b/dest is a valid relative path

23
New cards

cd /a/b/dest

dest, assuming /a/b/dest is a valid absolute path

24
New cards

cd ~/a/b/dest

dest, assuming a is in your home directory and ~/a/b/dest is a valid path

25
New cards

.

path alias for the directory itself

26
New cards

..

path alias for parent of the directory (parent directory)

27
New cards

ls -a

ls shows hidden files (those that start with .)

28
New cards

ls .

ls lists the contents of . (current directory); same as ls with no arguments

29
New cards

ls ..

ls lists the contents of .. (parent directory)

30
New cards

cd ..

cd changes working directory to .. (parent directory; “up one”)

31
New cards

cd ../..

cd changes working directory to ../.. (parent of parent directory; “up two”)

32
New cards

C

CTRL (control)

33
New cards

M

META (meta): usually ALT, OPT, or ESC

34
New cards

S

SHIFT (shift)

35
New cards

C-a

move the cursor to the beginning of the line

36
New cards

C-e

move the cursor to the end of the line

37
New cards

C-f

move the cursor forward (right) one character

38
New cards

M-f

move the cursor forward (right) one word

39
New cards

C-b

move the cursor backward (left) one character

40
New cards

M-b

move the cursor backward (left) one word

41
New cards

C-p

backward one line through the command history

42
New cards

C-n

forward one line through the command history

43
New cards

C-r

reverse incremental search through command history

44
New cards

C-s

forward incremental search through command history

45
New cards

C - < (C-S-)

when in incremental search, move to beginning of command history

46
New cards

C - > (C-S- .)

When in incremental search, move to end of command history

47
New cards

cat

(concatenate [to standard output] command) displays the entire contents of a file all at once

48
New cards

mkdir

make a new directory

49
New cards

mv SOURCE DEST

rename SOURCE to DEST

50
New cards

mv SOURCE … DIRECTORY

move SOURCE(s) into DIRECTORY

51
New cards

cp SOURCE DEST

copy SOURCE to DEST

52
New cards

cp SOURCE … DIRECTORY

copy SOURCE(s) into DIRECTORY

53
New cards

rm

(remove command) to delete a file in Unix

54
New cards

-r

(recursive) option; to make rm recusrively remove the contents of a directory so that it can remove it

55
New cards

emacs

a powerful text editor that can run directly inside the terminalC

56
New cards

C-x C-f

open/find file

57
New cards

C-h t

emacs tutorial

58
New cards

C-x C-c

close/exit emacs

59
New cards

C-x C-s

save current buffer

60
New cards

C-g

quit/cancel a partially typed command

61
New cards

C-v

move down one page

62
New cards

M-v

move up one page

63
New cards

C-l

scroll to make the current line appear in the center, bottom, then top

64
New cards

M-g M-g

go to line (enter the number at prompt, then press RET)

65
New cards

M-<

move to beginning of buffer

66
New cards

M->

move to end of buffer

67
New cards

C-d

forward delete a single cahracter (similar to the delete key)

68
New cards

M-d

forward delete a word

69
New cards

C-x u

undo one batch of changes (usually one command worth)

70
New cards

C-/

undo one batch of changes (usually one command worth)

71
New cards

C-<SPC>

set the mark point (start a selection)

72
New cards

C-k

kill / cut to the end of the line (goes to kill buffer)

73
New cards

C-w

cut selection (goes to kill buffer)

74
New cards

M-w

copy selection (goes to kill buffer)

75
New cards

C-y

paste / yank (from kill buffer)

76
New cards

C-x h

select all

77
New cards

C-s

incremental search (forward direction)

78
New cards

C-r

incremental search (backward direction)

79
New cards

M-%

query replace

80
New cards

C-x 1

close other windows (maximize current window)

81
New cards

C-x 2

split window horizontally (stacked top and bottom)

82
New cards

C-x 3

split window vertically (side-by-side)

83
New cards

C-x o

switch cursor focus to the other window

84
New cards

C-x C-b

list available buffers

85
New cards

packages

used to organized code

86
New cards

simple class name

class name; will always begin with a capital letter; ex) Scanner

87
New cards

package name

will always be lowercase; ex) java.util

88
New cards

fully qualified name (FQN)

ex) java.util.Scanner

89
New cards

primary benefits of packages

1) name space management

2) access protection

90
New cards

src

default package for source code; will contain .java files

91
New cards

bin

default package for compiled code; will contain .class files

92
New cards

-cp

class path; the path to default package for compiled code

93
New cards

-d

destination

94
New cards

javac

compilation command