PE Systems

58 flashcards · Computer Science · by tosus

  1. Command to show swap

    swapon

  2. List of mappings from virtual to physical address space

    Translation Lookaside Buffer

  3. Command for getting open files and descriptors

    lsof

  4. Hardware that implements virtual memory

    Memory Management unit

  5. Outdated command to check network connections

    netstat

  6. Size of a memory page

    4kb

  7. Command for socket statistics

    ss

  8. Directory that contains a process's open file descriptors

    /proc/[pid]/fd

  9. Command to get network packets

    tcpdump

  10. Command to track process syscalls

    strace

  11. A command to monitor process's function calls

    perf top

  12. Directory that contains runtime statistics of a process

    /proc/[pid]/stat

  13. Command to view recently logged in users

    last

  14. Command to view a process's executable

    readlink /proc/[pid]/exe

  15. RedHat command to find package associated with an executable

    rpm -qf

  16. Directory that contains a process's environment variables

    /proc/[pid]/environ

  17. Syscall for obtaining parent process's PID

    getppid()

  18. Syscall for obtaining process's own PID

    getpid()

  19. Syscall for waiting for any child process to exit

    wait()

  20. Syscall for waiting for a specific child process to exit

    waitpid(PID)

  21. Syscall for creating a child process

    fork()

  22. A signal to exit program that can have a custom handler

    SIGTERM

  23. A signal to exit program that can NOT have a custom handler

    SIGKILL

  24. A one-way form of IPC that works by creating 2 file descriptors, one for read, one for write

    pipe

  25. Syscall to clone a file descriptor

    dup()

  26. Syscall to create a filesystem node

    mknod()

  27. A pipe implemented as a special named file in the filesystem

    FIFO

  28. Code to create a FIFO

    mknod("fifo_name", S_IFIFO | 0666, 0)

  29. Syscall for manipulating file descriptors, can be used for setting advisory file locks

    fcntl()

  30. Syscall for creating semaphores

    semget()

  31. Syscall for controlling semaphores

    semop()

  32. Syscall for creating shared memory segments

    shmget()

  33. Syscall that can create IPC keys for semaphores and shared memory segments

    ftok()

  34. Syscall for obtaining a pointer to a shared memory segment

    shmat()

  35. Syscall for detaching from a shared memory segment

    shmdt(*shmaddr)

  36. Syscall for mapping memory to a file

    mmap()

  37. Form of IPC that functions like a two-way pipe

    Unix Domain Sockets

  38. Syscall for creating sockets

    socket()

  39. Syscall for assigning a socket to an address (special file)

    bind()

  40. Syscall to make socket await connections from clients

    listen()

  41. Syscall that returns a new socket descriptor that's connected to a client

    accept()

  42. Syscalls for sending and receiving connections over a socket

    send(), recv()

  43. Syscall for connecting a socket to a currently listening server

    connect()

  44. Syscall to commit pending filesystem changes to disk

    sync()

  45. Syscall for accessing file descriptor inode metadata

    stat()

  46. System page that contains a cached file that has been changed, but the changes have not been committed to memory yet

    Dirty page

  47. Default capacity of a linux pipe

    16 pages

  48. Utility for reading virtual memory statistics

    vmstat

  49. Utility for reading IO statistics

    iostat

  50. Utility for listing information about block devices

    lsblk

  51. Utility for locating block devices and printing their attributes

    blkid

  52. Command to print all mounted devices

    cat /proc/mounts

  53. Command for limiting process's resource consumption

    ulimit

  54. Command for displaying filesystem info

    df

  55. Command for displaying disk usage of files

    du

  56. Command to separate a process from shell/terminal while still having it remains as it's child

    nohup

  57. Command that removes a process from shell's list of children

    disown

  58. Syscall for getting directory entries

    getdents()