sandervanvugt

Untitled

May 26th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. sudo useradd lisa
  2. 2 sudo userdel lida
  3. 3 sudo userdel lisa
  4. 4 sudo passwd lisa
  5. 5 sudo passwd root
  6. 6 exit
  7. 7 sudo passwd root
  8. 8 sudo passwd bob
  9. 9 exit
  10. 10 touch lindafile1
  11. 11 touch lindafile2
  12. 12 exit
  13. 13 cd /etc/sudoers.d/
  14. 14 ls
  15. 15 cat linda
  16. 16 yum provides */pbrun
  17. 17 cd /etc
  18. 18 ls sudoer*
  19. 19 cd /home/student/
  20. 20 ./countdown 12
  21. 21 man hier
  22. 22 cd /
  23. 23 ls
  24. 24 ls -l
  25. 25 cd boot
  26. 26 ls
  27. 27 cd /dev
  28. 28 ls
  29. 29 cd /etc
  30. 30 ls
  31. 31 cat sudoers
  32. 32 cat passwd
  33. 33 cd /
  34. 34 ls
  35. 35 cd home
  36. 36 ls
  37. 37 cd /root
  38. 38 ls
  39. 39 pwd
  40. 40 cd run
  41. 41 cd /run
  42. 42 ls
  43. 43 cd /tmp
  44. 44 ls
  45. 45 cd /usr
  46. 46 du -hs
  47. 47 ls
  48. 48 cd /var
  49. 49 ls
  50. 50 cd log
  51. 51 ls
  52. 52 cd /
  53. 53 ls -l
  54. 54 ls -il /etc/hosts
  55. 55 ln /etc/hosts /root/myhosts
  56. 56 ls -il /etc/hosts /root/myhosts
  57. 57 echo hello >> /etc/hosts
  58. 58 ls -il /etc/hosts /root/myhosts
  59. 59 cat /root/myhosts
  60. 60 cd
  61. 61 ln -s /root/myhosts /tmp/symhosts
  62. 62 ls -il /etc/hosts /root/myhosts /tmp/symhosts
  63. 63 cat /tmp/symhosts
  64. 64 rm /root/myhosts
  65. 65 ls -il /etc/hosts /root/myhosts /tmp/symhosts
  66. 66 cat /tmp/symhosts
  67. 67 ln /etc/hosts /root/myhosts
  68. 68 ls -il /etc/hosts /root/myhosts /tmp/symhosts
  69. 69 ln /etc /myetc
  70. 70 ln /boot/vmlinuz-4.18.0-147.el8.x86_64 mykernel
  71. 71 find / -samefile /etc/hosts
  72. 72 find / -samefile /etc/hosts
  73. 73 find / -samefile /etc/hosts 2> /dev/null
  74. 74 history
  75. 75 history | less
  76. 76 cp /tmp/symhosts .
  77. 77 ls -l
  78. 78 cat symhosts
  79. 79 man hier
  80. 80 lsblk
  81. 81 umount /dev/sdb1
  82. 82 lsblk
  83. 83 mount /dev/sdb1 /mnt
  84. 84 ls /mnt
  85. 85 umount /mnt
  86. 86 cd /home/student/
  87. 87 ls
  88. 88 countdown
  89. 89 echo $PATH
  90. 90 mv countdown /usr/bin
  91. 91 countdown 12
  92. 92 man -k user
  93. 93 man man
  94. 94 man apropos
  95. 95 man mandb
  96. 96 mandb
  97. 97 man -k user
  98. 98 man man
  99. 99 man -k user | grep 8
  100. 100 find / -name "hosts"
  101. 101 find / -name "*hosts*"
  102. 102 find / -user linda
  103. 103 find / -size +100M
  104. 104 find / -user linda -exec ls -l {} \;
  105. 105 find / -user linda -exec cp {} /root \;
  106. 106 ls
  107. 107 ls -la
  108. 108 su - linda
  109. 109 find / -user linda -exec cp {} /root \;
  110. 110 ls -l
  111. 111 pwd
  112. 112 cd /root
  113. 113 ls -l
  114. 114 history
  115. 115 ps aux
  116. 116 ps aux | grep ssh
  117. 117 grep linda /etc/*
  118. 118 grep linda /etc/* 2>/dev/null
  119. 119 grep -l linda /etc/* 2>/dev/null
  120. 120 grep -lR linda /etc/* 2>/dev/null
  121. 121 which vi
  122. 122 which vim
  123. 123 ls -l /bin/vi /bin/vim
  124. 124 exit
  125. 125 vim /etc/hosts
  126. 126 vim /etc/login.defs
  127. 127 echo $(( 99999 / 365 ))
  128. 128 vim /etc/login.defs
  129. 129 groupadd sales
  130. 130 groupadd account
  131. 131 useradd --help
  132. 132 useradd -G sales linda
  133. 133 id linda
  134. 134 usermod -aG sales linda
  135. 135 id linda
  136. 136 usermod -aG sales lisa
  137. 137 useradd -G account anna
  138. 138 useradd -G account anouk
  139. 139 history
Add Comment
Please, Sign In to add comment