NWP lab2 Flashcards

1
Q

finger

A

Used to display information about local and remote users. (Similar to who)

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

ifconfig –a:

A

Displays the status of all interfaces, even those that are down. (show ip address)

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

kill -9 2168

A

The kill command is used to terminate processes without having to log out or reboot (restart) the computer. 2168 is the PID of the process.

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

the difference between bash and ksh (korn shell)

A

Bash is the standard shell for common users (linux) while korn shell is a Unix shell.

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

ksh

A

Used to change execution method to ksh

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

how to exit ksh

A

Used to exit ksh

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

Scripts

A

Scripts are collections of commands that are stored in a file. The shell can read this file and act on the commands as if they were typed at the keyboard.

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

vi test.sh

A

Short for visual text editor. Create test.sh (script) file, it is an interactive text editor. The screen acts as a window.

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

To execute vi test.sh

A

Go to ls –l (you must change the permission of the file using chmod command) ls-l (notice how the coloe changed) >./test.sh (to execute) >:q (to exit text editor)

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

Used to display information about local and remote users. (Similar to who)

A

finger

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

Displays the status of all interfaces, even those that are down. (show ip address)

A

ifconfig –a:

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

The kill command is used to terminate processes without having to log out or reboot (restart) the computer. 2168 is the PID of the process.

A

kill -9 2168

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

Bash is the standard shell for common users (linux) while korn shell is a Unix shell.

A

the difference between bash and ksh (korn shell)

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

Used to change execution method to ksh

A

ksh

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

Used to exit ksh

A

how to exit ksh

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

Scripts are collections of commands that are stored in a file. The shell can read this file and act on the commands as if they were typed at the keyboard.

A

Scripts

17
Q

Short for visual text editor. Create test.sh (script) file, it is an interactive text editor. The screen acts as a window.

A

vi test.sh

18
Q

Go to ls –l (you must change the permission of the file using chmod command) ls-l (notice how the coloe changed) >./test.sh (to execute) >:q (to exit text editor)

A

To execute vi test.sh