Unix Calls Flashcards
ps -ef
Lists running processes
e (every process)
f (full output)
fork
Creates new process that is clone of the parent process, returns pid of child
execve
Executes program
function > file
> is redirection of a command’s output to a file
who
List of users currently logged on
cat
Concatenates to single output
exit
Normal process termination, exits current process
kill
Kills processes that do not catch the signal
init
First process started on boot, creates other processes (this is a daemon)
grep
Prints all lines with the following expression in them
thread_create
Library procedure that creates new thread
thread_exit
Library procedure that causes thread to vanish such that it cannot be scheduled
thread_wait
Library procedure that blocks the calling thread until a specific thread has exited
thread_yield
Allows thread to voluntarily give up CPU time to another thread (there is no clock interrupt for threads, as there is for processes)
select
Allows caller to tell if it will read or block