MOD E02: Unix Internals Flashcards
A system call is the fundamental interface between an application and the Linux kernel.
[TRUE /FALSE]
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?
- Syscall
- LKM
- PID
- PPID
LKM
(Loadable Kernel Modules)
What command can be used to show the status of currently loaded LKM’s?
lsmod
LKMs only have to be loaded when you’re actually using them. [TRUE / FALSE]
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.
[TRUE / FALSE]
TRUE
The login shell is set at the time of account creation.
[TRUE / FALSE]
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.
[TRUE / FALSE]
FALSE
Login shells read environment variables from where?
- -/bin/profile
- -/var/profile
- /etc/profile
- /tmp/profile
/etc/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
What command is used to change shells?
chsh
What is a Linux based text editor that allows for updates and changes in the terminal window?
- Text editor
- nano
- wordpad
- notepad
nano
What contains the user’s specific environment and start up programs?
- desktop
- documents
- profile
- tmp
profile
With a restricted shell, a user cannot use the change directory command (cd).
[TRUE / FALSE]
TRUE
What command, learned in the lesson, can be used to invoke a bash restricted shell?
bash -r
What command can be used to locate where the rbash executable file is located?
whereis rbash
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
Variable that is set across user accounts
What command is used to view the environment variables?
printenv
What is known as an encrypted channel for data exchange?
SSH
(Secure Shell)
What command can be used to securely copy a file?
SCP
(secure copy)
What scp option can be used to specify a port?
- -p
- -v
- -r
- -P
-P
(capitalized)
What is a standard network protocol used to transfer files to and from a remote network?
SFTP
(Secure File Transfer Protocol)