Chp 1.1 Flashcards

1
Q

bash

A

GNU Bourne Again Shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

/bin/sh

A

Pointer to default shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

xterm; terminal; konsole

A

Terminal emulators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

uname (-a)

A

Shows operating system; -a shows more info, including kernel version and hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

cd

A

Change working directory; e.g. cd /home/sally

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

cd ~

A

Change working directory to home directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

pwd

A

Print working directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

echo

A

Prints a line of text; e.g. echo “hello world”; -n omits newline with multiple echoes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

time

A

Times how long subsequent commands take to execute; Three times are displayed: total execution time (aka real time), user CPU time, and system CPU time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

set

A

Defines and determines the values of the system environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

exit and logout

A

Terminates shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

type

A

Tells whether subsequent command is internal or external; internal commands take precedent; enter full path of external command to run instead

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

./

A

Current directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

$PATH env variable

A

A list of directories in which commands can be found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

chmod

A

Edit permissions; To run, a program must be marked as executable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Tab key in shell

A

Command completion

17
Q

Up key in shell

A

Command history, one at a time

18
Q

Ctrl+R in shell

A

Reverse search command history

19
Q

Ctrl+S in shell

A

Forward search command history

20
Q

Ctrl+G in shell

A

Terminates search

21
Q

Ctrl+A and Ctrl+E

A

Move to beginning and end of command

22
Q

Ctrl+B and Ctrl+F

A

Move back and forward on command one word at a time

23
Q

history

A

Shows command history

24
Q

!!

A

Show and execute last command

25
Q

mkdir

A

Make directory

26
Q

mv

A

Permanently moves the files or directories from one location to another and deletes the files in the source

27
Q

traceroute

A

Determine the route that IP packets originating from your system follow to reach the destination host

28
Q

Ctrl+C

A

Aborts program

29
Q

Ctrl+Z

A

Suspends program (puts into background)

30
Q

fg

A

Brings suspended program back up

31
Q

touch

A

Creates file

32
Q

less or more

A

Read a file; less opens faster

33
Q

$TERM

A

Terminal information env variable

34
Q

$PS1

A

Prompt env variable

35
Q

man and info

A

Manual of subsequent command; info supports hypertext

36
Q

help

A

Help on subsequent command