MOD E02: Unix Internals Flashcards

1
Q

A system call is the fundamental interface between an application and the Linux kernel.

[TRUE /FALSE]

A

TRUE

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

What command can be utilized to intercept and record system calls?

A

strace

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

Within the following command (strace -____ test1.log ls filedir/), what option can be listed to output the contents strace reveals?

A

o

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

System Libraries are located where?

  • User processes
  • Hardware
  • Kernel
  • User Space
A

User Space

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

What were created to allow users to add code to the Linux Kernel while it is running?

  • Syscall
  • LKM
  • PID
  • PPID
A

LKM

(Loadable Kernel Modules)

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

What command can be used to show the status of currently loaded LKM’s?

A

lsmod

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

LKMs only have to be loaded when you’re actually using them. [TRUE / FALSE]

A

TRUE

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

What command will display a snapshot of the current system processes?

A

ps

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

What command can display active processes continuously, until prompt to stop?

A

top

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

What is the process call when it is still running after the GUI or application is closed?

  • Process
  • Zombie
  • Parent Process
  • Top
A

Zombie

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

The login shell is set at the time of account creation.

[TRUE / FALSE]

A

TRUE

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

The login shell is set at the time of account creation.

[TRUE / FALSE]

A

TRUE

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

In order to see what login shell the user is currently operating in, what command do you use?

  • echo $pwd
  • echo $0
  • chsh
  • echo shell
A

echo $0

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

The login shell is the second process that is executed with your user ID when you log into an interactive session.

[TRUE / FALSE]

A

FALSE

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

Login shells read environment variables from where?

  • -/bin/profile
  • -/var/profile
  • /etc/profile
  • /tmp/profile
A

/etc/profile

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

To view what type of shell the user is currently operating in, what command do you use?

  • echo Spwd
  • echo $0
  • chsh
  • echo $SHELL
17
Q

What command is used to change shells?

18
Q

What is a Linux based text editor that allows for updates and changes in the terminal window?

  • Text editor
  • nano
  • wordpad
  • notepad
19
Q

What contains the user’s specific environment and start up programs?

  • desktop
  • documents
  • profile
  • tmp
20
Q

With a restricted shell, a user cannot use the change directory command (cd).

[TRUE / FALSE]

21
Q

What command, learned in the lesson, can be used to invoke a bash restricted shell?

22
Q

What command can be used to locate where the rbash executable file is located?

A

whereis rbash

23
Q

Which of the following is not a feature of Local variable:

  • only accessed in the shell in which they were created.
  • They are not transferred to a new shell when the variable is created
  • Variable that is set across user accounts
  • An example is history
A

Variable that is set across user accounts

24
Q

What command is used to view the environment variables?

25
What is known as an encrypted channel for data exchange?
SSH (Secure Shell)
26
What command can be used to securely copy a file?
SCP (secure copy)
27
What scp option can be used to specify a port? * -p * -v * -r * -P
-P (capitalized)
28
What is a standard network protocol used to transfer files to and from a remote network?
SFTP (Secure File Transfer Protocol)