Advertisement
Guest User

Untitled

a guest
Nov 4th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. Adding user
  2. --------------
  3. > useradd ABC
  4. > passwd ABC
  5. > cat /etc/passwd
  6.  
  7. path created as /home/ABC
  8.  
  9. Username: User login name used to login into system. It should be between 1 to 32 charcters long.
  10. Password: User password (or x character) stored in /etc/shadow file in encrypted format.
  11. User ID (UID): Every user must have a User ID (UID) User Identification Number. By default UID 0 is reserved for root user and UID’s ranging from 1-99 are reserved for other predefined accounts. Further UID’s ranging from 100-999 are reserved for system accounts and groups.
  12. Group ID (GID): The primary Group ID (GID) Group Identification Number stored in /etc/group file.
  13. User Info: This field is optional and allow you to define extra information about the user. For example, user full name. This field is filled by ‘finger’ command.
  14. Home Directory: The absolute location of user’s home directory.
  15. Shell: The absolute location of a user’s shell i.e. /bin/bash.
  16.  
  17.  
  18. User related:
  19. -----------------
  20. > whoami
  21. root
  22.  
  23.  
  24. Important files
  25. ----------------
  26. /include/linux/sched.h
  27. /kernel/sched.c
  28.  
  29.  
  30. Tracing
  31. -----------------
  32. strace -i -p pid
  33. strace -t -p pid -o out.txt
  34.  
  35.  
  36. Path to kernel files
  37. ------------------
  38. cd /usr/src/kernels/
  39.  
  40. Find a file
  41. ---------------
  42. find -name fname
  43.  
  44.  
  45.  
  46. to see kernel messages printed by printk
  47. -----------------------------
  48. dmesg
  49.  
  50. check kernel version
  51. ---------------------
  52. uname -r
  53. cat /proc/version
  54.  
  55.  
  56.  
  57.  
  58. Compiling the kernel
  59. --------------------
  60. cd /usr/src/kernels/some-kernel
  61. make
  62. make modules
  63. make modules_install
  64. make install
  65.  
  66.  
  67. untar
  68. =======
  69. tar -xjf linux-tar-file
  70.  
  71. vim
  72. ===========
  73. set nocompatible
  74.  
  75.  
  76.  
  77. Steps to create a system call
  78. ==============================
  79. 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement