Module 5 bulk Flashcards
when Windows first boots up, what is the first non-kernel and user mode that starts up?
the Session Manager Subsystem, smss.exe
what is the smss.exe process in charge of?
some stuff that gets the OS to work. initializing the system environment, setting up system variables, starting core processes like winlogon.exe and csrss.exe.
what starts winlogon.exe?
smss.exe
what is the client server runtime subystem process in charge of?
csrss.exe is in charge of the GUI and command line console.
what process does Linux use as the first process?
Init
what does each new process in Windows need to tell the operating system that a new process needs to be made?
a parent
what do child processes in Windows inherit from parents?
variables, settings: environment
can linux processes operate independently of their parents?
no
what happens if you kill a parent process in Windows?
the child keeps running
how do you stop a process from running in Windows if you are most users?
click the x in the GUI
what command prompt utility can you use to end tasks in Windows? to find and end them.
taskkill
what is a common way to use taskkill to end tasks in Windows?
use an identification number.
what is PID?
process identification number
what is the format for taskkill to use PID to kill the task that you want to kill?
taskkill /pid PID#
how do you find the PID of a process you want to kill in Task Manager?
Task manager, by doing ctrl+alt+del and selecting task manager, and going to the details tab.
what is image name?
the exe name and extension without the file path to the exe. the name of the executable file.
in taskkill, what does “”“/s <computer””” specify?
the name or IP address of a remote computer. the default is the local computer
in taskkill, what does “”“/u <domain> \<username>""" do?</username></domain>
runs the command with the account permissions of the user who is specified by the username or by the domain/username. can be specified only if /s is specified. the default is permissions of the user who is logged into the computer issuing the command.
with taskkill, what does “”“/p <password>""" specify?</password>
the password of the user account that is specified in the /u parameter
in taskkill, what does /fi do?
applies a filter to select a set of tasks. can use * to specify all tasks or image names.
what does /pid do in taskkill?
specifies the process ID of the process to be terminated
what does /f do in taskkill?
specifies that processes by forcefully ended. Parameter is ignored for remote processes. all remote processes are forcefully ended.
what does /t do in taskkill?
ends the specified process and any child processes it started.
what does it mean for processes to have a parent child relationship?
the processes that are launched come from other processes. Linux.
in this command, what process is the parent process?
less /etc/some_file | grep Hello
the less command is the parent process to the grep process.
what is the PID of init?
1
what is the parent process of all other processes in Linux?
init
what happens when we finish processes in Linux?
they will terminate automatically and release all the resources they were using so they can be used for other processes.
what is one main difference between Windows and Linux processes?
the Linux processes cannot operate independently of parent processes (they have a parent-child relationship), and Windows processes can operate independently.
when we execute a program, what do we launch?
a process.
what type of process is a daemon process?
a background process.
what is the name of the process that starts up other processes needed to boot a Linux OS?
Init
what process in Windows OS handles running the GUI and command line console?
csrss.exe?
what can I think of processes as?
codes in motion
what runs process codes stored on the hard drive?
the OS.
what is the usual way of seeing process information on Windows?
taskmgr.exe
what key combo opens task mgr?
ctrl+shift+esc
what do you see in processes tab of task manager:
processes user is running and that the system is running.
what do the process manager page columns tell you?
what apps are running, user who launched it, CPU used, memory used, disk used,
how to kill a process in task manager
select the process, hit end task button in low right corner
where is the pid in task manger?
details menu.
what utility in command prompt shows all running processes? with pid and all.
tasklist.
what command in PowerShell will get a list of processes and their pids?
Get-Process
what does Get-Process do by default without parameters?
get all processes on the local computer.
what command can be used to view process in linux?
ps
what happens if you run ps -x?
system shows a snapshot of current processes running.
in ps, what is the terminal associated with a process?
TTY column
what column is the process status in Linux ps -x?
stat.
what do the letters mean in STAT?
R: running.
T: stopped
S: interruptible sleep
what does R mean in Linux for a process status?
running or waiting to run
stopped, suspended,
what does s mean in process status Linux?
task is waiting for an event to complete before it resumes.
what is the TIME column in ps -x?
the total cpu time the process has taken up
what is the command column in ps -x?
the name of the command we’re running.
what is the ps -ef command? Linux. what is -e used for? what is -f used for/
-e is used to get all processes, even from other users, -f is for full details about a process.
what is UID in linux? ps -ef
user id of the person who launched the process.
what is ppid in ps -ef?
the parent ID.
in ps -ef, what is C?
the number of children processes
in ps -ef, what is S?
the start time of the process
in ps -ef, what is TTY?
the terminal associated with the process
in ps -ef, what is TIME?
the total CPU time the process has taken up.
what is cmd in ps -ef?
the name of the command we are running
how can you find processes in the ps command?
grep
how do you use grep to find Chrome in the list of processes?
”"”ps -ef | grep Chrome”””
how do you view the files that correspond to processes?
ls -l /proc
how do you look at a process status? subdirectory
cat /proc/<pid>/status</pid>
what is the best command to use to look at processes and troubleshoot them?
ps -ef
what does ps do according to man?
report a snapshot of the current processes
what does ps do by default?
selects all processes with the same effective user ID as the current user and associated with the same terminal as the invoker.
what is BSD in Linux?
a family of os derived from berkeley unix. openbsd, freebsd, netbsd, dragonflybsd. not linux. haha. sorry.