E02: Linux Internals PE Flashcards

1
Q

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

T/F

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? Network Driver

  • 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

LKM’s only have to be loaded when you’re actually using them.

T/F

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

T/F

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
Q

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

T/F

A

False

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

Login shells read environment variables from where?

  • /bin/profile
  • /var/profile
  • /etc/profile
  • /tmp/profile
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
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
A

echo $0

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

What command is used to change shells?

A

chsh

17
Q

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

  • Text editor
  • nano
  • wordpad
  • notepad
A

nano

18
Q

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

  • Desktop
  • Documents
  • Profile
  • tmp
A

profile

19
Q

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

T/F

A

True

20
Q

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

A

bash -r

21
Q

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

A

whereis rbash

22
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

23
Q

What command is used to view the environment variables?

A

printenv

24
Q

What is known as an encrypted channel for data exchange?

A

SSH - Secure Shell

25
Q

What command can be used to securely copy a file?

A

SCP (secure copy)

26
Q

What scp option can be used to specify a port?

  • -p
  • -v
  • -r
  • -p
A

-p

27
Q

What is a standard network protocol used to transfer files to and from a remote network?

A

SFTP (Secure File Transfer Protocol)