E02: Linux Internals PE Flashcards
A system call is the fundamental interface between an application and the Linux kernel.
T/F
True
What command can be utilized to intercept and record system calls?
strace
Within the following command (strace -____ test1.log ls filedir/) what option can be listed to output the contents strace reveals?
o
System Libraries are located where?
- User processes
- Hardware
- Kernel
- User Space
User Space
What were created to allow users to add code to the Linux Kernel while it is running? Network Driver
- Syscall
- LKM
- PID
- PPID
LKM - Loadable Kernel Modules
What command can be used to show the status of currently loaded LKM’s?
lsmod
LKM’s only have to be loaded when you’re actually using them.
T/F
True
What command will display a snapshot of the current system processes?
ps
What command can display active processes continuously, until prompt to stop?
top
What is the process call when it is still running after the gui or application is closed?
- Process
- Zombie
- Parent Process
- Top
Zombie
The login shell is set at the time of account creation
T/F
True
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
echo $0
The login shell is the second process that is executed with your user ID when you log into an interactive session.
T/F
False
Login shells read environment variables from where?
- /bin/profile
- /var/profile
- /etc/profile
- /tmp/profile
To view what type of shell the user is currently operating in, what command do you use?
- echo Spwd
- echo $0
- Chsh
- echo $SHELL
echo $0