sandervanvugt

RHCSA july20 day4

Jul 16th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.71 KB | None | 0 0
  1. [root@nfsserver home]# history
  2. 1 lsblk
  3. 2 fdisk /dev/sda
  4. 3 lsblk
  5. 4 fdisk -l /dev/sda
  6. 5 mkfs.xfs /dev/sda3
  7. 6 vim /etc/fstab
  8. 7 mount -a
  9. 8 mkdir /files
  10. 9 mount -a
  11. 10 mount
  12. 11 history
  13. 12 poweroff
  14. 13 hostnamectl set-hostname nfsserver.example.com
  15. 14 exit
  16. 15 echo ###### SETTING UP NFS SERVER
  17. 16 yum search nfs
  18. 17 yum install -y nfs-utils
  19. 18 mkdir /myshare
  20. 19 cd /home
  21. 20 ls
  22. 21 mkdir -p ldap/ldapuser1
  23. 22 mkdir -p ldap/ldapuser
  24. 23 mkdir -p ldap/ldapuser2
  25. 24 mkdir -p ldap/ldapuser3
  26. 25 vim /etc/exports
  27. 26 systemctl enabel --now nfsserver
  28. 27 systemctl enable --now nfsserver
  29. 28 systemctl list-unit-files | grep nfs
  30. 29 systemctl enable --now nfs-server
  31. 30 systemctl status nfs-server
  32. 31 showmount -e localhost
  33. 32 firewall-cmd --get-services
  34. 33 firewall-cmd --permanent --add-service nfs
  35. 34 firewall-cmd --permanent --add-service rpc-bind
  36. 35 firewall-cmd --permanent --add-service mountd
  37. 36 history
  38. 37 firewall-cmd --reload
  39.  
  40. *******************
  41.  
  42.  
  43. [root@localhost skel]# history
  44. 1 usermod -aG sales lisa
  45. 2 usermod --help | less
  46. 3 ls -l $(which useradd) $(which adduser)
  47. 4 ls -l /etc/skel
  48. 5 ls -al /etc/skel
  49. 6 touch /etc/skel/blah
  50. 7 useradd bill
  51. 8 ls -la /home/bill
  52. 9 history
  53. 10 cd /home
  54. 11 ls -l
  55. 12 cd /etc
  56. 13 ls -l
  57. 14 cd
  58. 15 tail -2 /etc/group
  59. 16 tail -8 /etc/group
  60. 17 mkdir /data/sales
  61. 18 mkdir -p /data/sales
  62. 19 mkdir -p /data/account
  63. 20 cd /data
  64. 21 ls -l
  65. 22 id
  66. 23 chown linda.sales sales
  67. 24 ls -l
  68. 25 chgrp account account
  69. 26 ls -l
  70. 27 chmod 770 *
  71. 28 ls -l
  72. 29 history
  73. 30 mkdir linda
  74. 31 chown linda linda
  75. 32 chmod 100 linda
  76. 33 ls -l
  77. 34 cd linda
  78. 35 touch a b c d e
  79. 36 ls -l
  80. 37 su - linda
  81. 38 pwd
  82. 39 chmod u+w .
  83. 40 ls -ld .
  84. 41 pwd
  85. 42 su - linda
  86. 43 pwd
  87. 44 chmod 400 .
  88. 45 ls -ld .
  89. 46 su - linda
  90. 47 history
  91. 48 pwd
  92. 49 cd /home/linda
  93. 50 touch rootfile
  94. 51 ls -l
  95. 52 su - linda
  96. 53 pwd
  97. 54 touch r2
  98. 55 su - linda
  99. 56 ls -l
  100. 57 cd
  101. 58 ls -l
  102. 59 ln /etc/hosts myhosts
  103. 60 ls -l /etc/hosts myhosts symhosts
  104. 61 passwd linda
  105. 62 ls -l /home/linda
  106. 63 ls -ld /home/linda
  107. 64 pwd
  108. 65 cd /home/linda
  109. 66 echo wortel > rootfile3
  110. 67 su - linda
  111. 68 pwd
  112. 69 cd ..
  113. 70 ls -l
  114. 71 userdel bill
  115. 72 ls -l
  116. 73 useradd jim -u 1006 -g 1008
  117. 74 ls -l
  118. 75 useradd jim -u 1006
  119. 76 ls -l
  120. 77 cd
  121. 78 find / -user "jim" -exec mv {} /root/ \;
  122. 79 ls
  123. 80 userdel --help
  124. 81 userdel -r jim
  125. 82 cd /home/linda
  126. 83 vim playme
  127. 84 chmod +x playme
  128. 85 su - linda
  129. 86 vim playme
  130. 87 chmod u+s playme
  131. 88 ls -l
  132. 89 find / -perm /4000 2>/dev/null
  133. 90 ls -l /usr/bin/passwd
  134. 91 ls -l /etc/shadow
  135. 92 cd /data
  136. 93 ls -l
  137. 94 su - anna
  138. 95 chmod g+s account/
  139. 96 ls -l
  140. 97 su - anna
  141. 98 ls
  142. 99 ls -l
  143. 100 su anouk
  144. 101 su - anouk
  145. 102 chmod +t *
  146. 103 ls -l
  147. 104 su - anouk
  148. 105 su - lisa
  149. 106 su - linda
  150. 107 su - anouk
  151. 108 history
  152. 109 countdown 13
  153. 110 ls -l
  154. 111 cd sales
  155. 112 ls
  156. 113 su - linda
  157. 114 chmod g+s sales
  158. 115 chmod g+s .
  159. 116 pwd
  160. 117 ls -ld .
  161. 118 su - linda
  162. 119 cd ..
  163. 120 getfacl sales
  164. 121 setfacl -m -R g:account:rx sales
  165. 122 setfacl -R -m g:account:rx sales
  166. 123 getfacl sales
  167. 124 ls -l sales
  168. 125 man setfacl
  169. 126 setfacl -x g:account sales
  170. 127 getfacl sales
  171. 128 setfacl -R -m g:account:rX sales
  172. 129 ls -l sales/
  173. 130 setfacl -x g:account sales
  174. 131 ls -l sales/
  175. 132 setfacl -R -x g:account sales
  176. 133 ls -l sales/
  177. 134 setfacl -R -m g:account:rX sales
  178. 135 ls -l sales/
  179. 136 getfacl sales
  180. 137 cd sales
  181. 138 getfacl a
  182. 139 history
  183. 140 su - linda
  184. 141 setfacl -m d:g:account:rx sales
  185. 142 setfacl -m d:g:account:rx .
  186. 143 su - linda
  187. 144 cd
  188. 145 yum repolist
  189. 146 cd /etc/yum.repos.d/
  190. 147 ls
  191. 148 rm -f *
  192. 149 yum repolist
  193. 150 cd /
  194. 151 df -h
  195. 152 dd if=/dev/sr0 of=/centos82.iso bs=1M &
  196. 153 mkdir /repo
  197. 154 vim /etc/fstab
  198. 155 ls /repo
  199. 156 mount -a
  200. 157 ls /repo
  201. 158 mount | grep repo
  202. 159 cd repo
  203. 160 ls
  204. 161 cd BaseOS/
  205. 162 ls
  206. 163 cd Packages/
  207. 164 ls
  208. 165 cd ..
  209. 166 cd repodata/
  210. 167 ls
  211. 168 cd ../../AppStream/
  212. 169 ls
  213. 170 cd
  214. 171 yum repolist
  215. 172 cd /etc/yum.repos.d/
  216. 173 vim BaseOS.repo
  217. 174 yum repolist
  218. 175 vim AppStream.repo
  219. 176 yum repolist
  220. 177 vim classroom.repo
  221. 178 yum repolist
  222. 179 cat classroom.repo
  223. 180 vim classroom.repo
  224. 181 yum repolist
  225. 182 cd
  226. 183 mount
  227. 184 mount | grep '^/'
  228. 185 history
  229. 186 history | grep dd
  230. 187 countdown 12
  231. 188 which yum
  232. 189 ls -l /usr/bin/yum
  233. 190 yum search nmap
  234. 191 yum install nmap-ncat
  235. 192 yum install nmap
  236. 193 yum search seinfo
  237. 194 yum provides */seinfo
  238. 195 yum install setools-console
  239. 196 yum module list
  240. 197 yum module provides httpd
  241. 198 yum module provides python
  242. 199 yum module provides python36
  243. 200 yum module provides nginx
  244. 201 yum module info nginx
  245. 202 yum module info postgresql
  246. 203 yum module info nginx
  247. 204 yum module install nginx:1.16
  248. 205 ip a
  249. 206 ip addr show
  250. 207 ip addr add dev ens33 10.0.0.10/24
  251. 208 ip a
  252. 209 ping 10.0.0.10
  253. 210 ifconfig
  254. 211 ifconfig -a
  255. 212 man ifconfig
  256. 213 ip -s link
  257. 214 which ifconfig
  258. 215 rpm -qf $(which ifconfig)
  259. 216 rpm -ql net-tools | grep bin
  260. 217 yum remove net-tools
  261. 218 ip route show
  262. 219 ping nu.nl
  263. 220 ip route del default via 192.168.4.2
  264. 221 ping nu.nl
  265. 222 ip route show
  266. 223 ip route add default via 192.168.4.2
  267. 224 ping nu.nl
  268. 225 cat /etc/resolv.conf
  269. 226 which dig
  270. 227 rpm -qf /usr/bin/dig
  271. 228 systemctl status NetworkManager
  272. 229 nmtui
  273. 230 ip a
  274. 231 vim /etc/sysconfig/network-scripts/ifcfg-ens33
  275. 232 nmtui
  276. 233 ip a
  277. 234 yum install bash-completion
  278. 235 nmcli connection show
  279. 236 nmcli connection show ens33
  280. 237 nmcli connection modify ens33 ipv4.addresses 192.168.4.190/24
  281. 238 cat /etc/sysconfig/network-scripts/ifcfg-ens33
  282. 239 ip a
  283. 240 nmcli connection up ens33
  284. 241 ip a
  285. 242 history
  286. 243 ip a
  287. 244 ip route show
  288. 245 cat /etc/resolv.conf
  289. 246 ping nu.nl
  290. 247 countdown 12
  291. 248 poweroff
  292. 249 history
  293. 250 lsblk
  294. 251 groupadd students
  295. 252 groupadd profs
  296. 253 vim /etc/login.defs
  297. 254 vim /etc/shadow
  298. 255 change anna
  299. 256 chage anna
  300. 257 chage --help
  301. 258 passwd --help
  302. 259 usermod -aG students lisa
  303. 260 usermod -aG students linda
  304. 261 usermod -aG profs anna
  305. 262 usermod -aG profs anouk
  306. 263 id anna
  307. 264 cd /data
  308. 265 mkdir students profs
  309. 266 ls -l
  310. 267 chown anna:students students
  311. 268 chown anna:profs profs
  312. 269 ls -l
  313. 270 chmod 3770 students/
  314. 271 chmod 3770 profs/
  315. 272 setfacl -R -m g:profs:rX students/
  316. 273 setfacl -m d:g:profs:rx students/
  317. 274 getfacl students/
  318. 275 history
  319. 276 cd
  320. 277 lsblk
  321. 278 fdisk /dev/sda
  322. 279 lsblk
  323. 280 cat /proc/partitions
  324. 281 mkfs.xfs /dev/sda3
  325. 282 mkdir /files
  326. 283 mount /dev/sda3 /files
  327. 284 mount
  328. 285 mount | grep '^/'
  329. 286 umount /files
  330. 287 vim /etc/fstab
  331. 288 reboot
  332. 289 mount | grep sd3
  333. 290 mount | grep sda3
  334. 291 fdisk /dev/sda
  335. 292 xxd -l 512 /dev/sda
  336. 293 fdisk /dev/sda
  337. 294 mkfs.xfs /dev/sda4
  338. 295 fdisk /dev/sda
  339. 296 partprobe
  340. 297 reboot
  341. 298 fdisk -l
  342. 299 lsblk
  343. 300 vim /etc/default/grub
  344. 301 grub2-mkconfig -o /boot/grub2/grub.cfg
  345. 302 mkfs.ext4 /dev/sda5
  346. 303 mkfs.xfs /dev/sda6
  347. 304 mkdir /ext4
  348. 305 mkdir /xfs
  349. 306 vim /etc/fstab
  350. 307 reboot
  351. 308 mount | grep sda
  352. 309 vim /etc/fstab
  353. 310 fdisk /dev/sda
  354. 311 reboot
  355. 312 mount | grep sda
  356. 313 lsblk
  357. 314 xfs_admin --help
  358. 315 xfs_admin -L goat /dev/sda5
  359. 316 vim /etc/fstab
  360. 317 reboot
  361. 318 mount | grep sda
  362. 319 blkid
  363. 320 vim /etc/fstab
  364. 321 fdisk -l /dev/sda
  365. 322 blkid
  366. 323 ls
  367. 324 ./countdown 12
  368. 325 blkid
  369. 326 blkid | cut -f 2
  370. 327 blkid | awk '{ print $2 }'
  371. 328 blkid | awk '{ print $2 }' | head -2 | tail -1
  372. 329 blkid | awk '{ print $2 }' | head -2 | tail -1 >> somefile
  373. 330 fdisk /dev/sda
  374. 331 mount /dev/sda6 /mnt
  375. 332 umount /mnt
  376. 333 mkfs.ext4 --help
  377. 334 mkfs.ext4 -L cow /dev/sda6
  378. 335 e2label --help
  379. 336 vim /etc/fstab
  380. 337 fdisk /dev/sda
  381. 338 reboot
  382. 339 fdisk /dev/sda
  383. 340 systemctl status tuned
  384. 341 tuned-adm --help
  385. 342 tuned-adm list
  386. 343 tuned-adm profile throughput-performance
  387. 344 tuned-adm list
  388. 345 cd /usr/lib/tuned/
  389. 346 ls
  390. 347 cd throughput-performance/
  391. 348 ls
  392. 349 cat tuned.conf
  393. 350 cd
  394. 351 ls -ld /usr/lib/tuned/ /etc/tuned/
  395. 352 mkdir /etc/tuned/sander
  396. 353 cp /usr/lib/tuned/throughput-performance/tuned.conf /etc/tuned/sander
  397. 354 tuned-adm list
  398. 355 history
  399. 356 vim /etc/tuned/sander/tuned.conf
  400. 357 lsblk
  401. 358 fdisk /dev/sda
  402. 359 cat /proc/partitions
  403. 360 lsblk
  404. 361 pvcreate /dev/sda7
  405. 362 pvs
  406. 363 vgcreate --help
  407. 364 vgcreate -s 8M vgdata /dev/sda7
  408. 365 vgs
  409. 366 pvs
  410. 367 lvcreate -n lvdata -L 1G vgdata
  411. 368 lvcreate -n lvdata -l 127 vgdata
  412. 369 lvs
  413. 370 mkfs.xfs /dev/vgdata/lvdata
  414. 371 vim /etc/fstab
  415. 372 mount -a
  416. 373 mkdir /lvdata
  417. 374 mount -a
  418. 375 history
  419. 376 mount | grep lvdata
  420. 377 ls -l /dev/vgdata/lvdata /dev/mapper/vgdata-lvdata
  421. 378 history
  422. 379 man lvcreate
  423. 380 vgs
  424. 381 mount | grep '^/'
  425. 382 pvs
  426. 383 xxd /dev/sda7 | less
  427. 384 ./countdown 12
  428. 385 df -h
  429. 386 dd if=/dev/zero of=/lvdata/bigfile
  430. 387 df -h
  431. 388 lvs
  432. 389 vgs
  433. 390 vgextend --help
  434. 391 vgextend vgdata /dev/sda8
  435. 392 vgs
  436. 393 lvextend -r -L +100M /dev/vgdata/lvdata
  437. 394 df -h
  438. 395 lvextend -l +50%FREE /dev/vgdata/lvdata
  439. 396 lvs
  440. 397 df -h
  441. 398 xfs_growfs /dev/vgdata/lvdata
  442. 399 df -h
  443. 400 history
  444. 401 free -m
  445. 402 fdisk /dev/sda
  446. 403 free -m
  447. 404 mkswap --help
  448. 405 mkswap /dev/sda9
  449. 406 free -m
  450. 407 vim /etc/fstab
  451. 408 swapon -a
  452. 409 free -m
  453. 410 grep ctive /proc/meminfo
  454. 411 top
  455. 412 yum install httpd -y
  456. 413 systemctl enable --now httpd
  457. 414 ps Zaux | grep http
  458. 415 ss -Ztupen
  459. 416 ss -Ztupenl
  460. 417 cd /var/www/
  461. 418 ls -lZ
  462. 419 ls -ldZ /tmp
  463. 420 ps Zaux | grep httpd | grep root
  464. 421 cd
  465. 422 ./countdown 12
  466. 423 getenforce
  467. 424 setenforce
  468. 425 cat /etc/sysconfig/selinux
  469. 426 vim /etc/httpd/conf/httpd.conf
  470. 427 mkdir /web
  471. 428 vim /web/index.html
  472. 429 systemctl restart httpd
  473. 430 curl http://localhost
  474. 431 setenforce permissive
  475. 432 curl http://localhost
  476. 433 vim /etc/httpd/conf/httpd.conf
  477. 434 systemctl restart httpd
  478. 435 curl http://localhost
  479. 436 setenforce 1
  480. 437 curl http://localhost
  481. 438 grep AVC /var/log/audit/audit.log
  482. 439 ls -Zd /var/www/html/
  483. 440 man semanage
  484. 441 man semanage-fcontext
  485. 442 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
  486. 443 ls -lZd /web
  487. 444 restorecon -Rv /web
  488. 445 curl http://localhost
  489. 446 restorecon --help
  490. 447 man restorecon
  491. 448 journalctl | grep sealert
  492. 449 sealert -l 9c70cfd0-5ed6-4b45-be83-666c83f7406e | less
  493. 450 getsebool -a
  494. 451 getsebool -a | wc
  495. 452 getsebool -a | grep ftp
  496. 453 setsebool -P ftpd_anon_write on
  497. 454 getsebool -a | grep ftp
  498. 455 yum provides systemd-journald
  499. 456 yum provides */systemd-journald
  500. 457 systemctl status firewalld
  501. 458 firewall-cmd --list-all
  502. 459 firewall-cmd --get-services
  503. 460 firewall-cmd --add-service http
  504. 461 firewall-cmd --list-all
  505. 462 firewall-cmd --reload
  506. 463 firewall-cmd --list-all
  507. 464 firewall-cmd --add-service http --permanent
  508. 465 firewall-cmd --list-all
  509. 466 firewall-cmd --reload
  510. 467 firewall-cmd --list-all
  511. 468 history
  512. 469 top
  513. 470 poweroff
  514. 471 rpm -qa | grep tools
  515. 472 yum install -y stratis-cli stratisd
  516. 473 systemctl enable --now stratisd
  517. 474 systemctl status stratisd
  518. 475 stratis pool create mypool /dev/sdb
  519. 476 stratis pool list
  520. 477 stratis filesystem create mypool myfs1
  521. 478 stratis filesystem create mypool myfs2
  522. 479 stratis filesystem list
  523. 480 blkid
  524. 481 mkdir /myfs1
  525. 482 vim /etc/fstab
  526. 483 mount -a
  527. 484 stratis pool list
  528. 485 stratis fs list
  529. 486 df -h
  530. 487 stratis blockdev list mypool
  531. 488 history
  532. 489 systemctl -t help
  533. 490 systemctl list-units -t target
  534. 491 systemctl list-units --all -t target
  535. 492 reboot
  536. 493 mount
  537. 494 mount | grep '^/'
  538. 495 mount -o remount,rw /
  539. 496 mount | grep '^/'
  540. 497 systemctl list-units
  541. 498 systemctl start rescue.target
  542. 499 systemctl list-units
  543. 500 systemctl start graphical.target
  544. 501 cat /etc/fstab
  545. 502 systemctl list-units -t mounts
  546. 503 systemctl list-units -t mount
  547. 504 vim /etc/fstab
  548. 505 cd /run/
  549. 506 ls
  550. 507 cd systemd/
  551. 508 ls
  552. 509 cd generator/
  553. 510 ls
  554. 511 vim ext4.mount
  555. 512 fdisk /dev/sda
  556. 513 mkfs.ext4 /dev/sda10
  557. 514 mkdir -p /my/files
  558. 515 cp ext4.mount /etc/systemd/system/my-files.mount
  559. 516 vim /etc/systemd/system/my-files.mount
  560. 517 systemctl start my-files.mount
  561. 518 mount | grep 10
  562. 519 systemctl cat sshd.service
  563. 520 vim /etc/systemd/system/my-files.mount
  564. 521 systemctl enable --now my-files.mount
  565. 522 cd
  566. 523 ps aux | less
  567. 524 journalctl
  568. 525 mkdir /var/log/journal
  569. 526 journalctl UNIT=sshd
  570. 527 systemctl status sshd.service
  571. 528 systemctl cat my-files.mount
  572. 529 systemctl status systemd-tmpfiles-clean.service
  573. 530 systemctl cat systemd-tmpfiles-clean.service
  574. 531 ./countdown 12
  575. 532 journalctl -f
  576. 533 cd /run/systemd/
  577. 534 cd generator/
  578. 535 ls
  579. 536 cat /etc/fstab
  580. 537 ls /etc/systemd/system
  581. 538 ls /usr/lib/systemd/system
  582. 539 vim /etc/systemd/journald.conf
  583. 540 man journald.conf
  584. 541 cat /etc/fstab
  585. 542 ls
  586. 543 cat myfs1.mount
  587. 544 cat boot.mount
  588. 545 cd
  589. 546 yum install vdo kmod-kvdo
  590. 547 man vdo
  591. 548 vdo create --name=vdo1 --device=/dev/sdc --vdoLogicalSize=1T
  592. 549 systemctl status vdo
  593. 550 mkfs.xfs -K /dev/mapper/vdo1
  594. 551 udevadm settle
  595. 552 cd /usr/share/doc/vdo/examples/
  596. 553 ls
  597. 554 cd systemd/
  598. 555 ls
  599. 556 mkdir /vdo1
  600. 557 cat VDO.mount.example
  601. 558 cp VDO.mount.example /etc/systemd/system/vdo1.mount
  602. 559 vim /etc/systemd/system/vdo1.mount
  603. 560 systemctl enable --now vdo1.mount
  604. 561 mount | grep vdo
  605. 562 vdo create --name=vdo2 --device=/dev/sdc --vdoLogicalSize=1T
  606. 563 vdostats
  607. 564 cd
  608. 565 yum install -y nmap
  609. 566 nmap -sn 192.168.4.0/24
  610. 567 ip a
  611. 568 nmap 192.168.4.194
  612. 569 ssh root@192.168.4.194
  613. 570 showmount -e 192.168.4.194
  614. 571 mount 192.168.4.194:/myshare /mnt
  615. 572 cd /mnt
  616. 573 ls
  617. 574 mount
  618. 575 cd
  619. 576 umount /mnt
  620. 577 yum search autofs
  621. 578 rpm -qa | grep autofs
  622. 579 yum install -y autofs
  623. 580 vim /etc/auto.master
  624. 581 cat /etc/auto.misc
  625. 582 vim /etc/auto.car
  626. 583 showmount -e 192.168.4.194
  627. 584 grep car /etc/auto.master
  628. 585 cat /etc/auto.car
  629. 586 systemctl enable --now autofs
  630. 587 cd /
  631. 588 ls
  632. 589 cd car
  633. 590 mount
  634. 591 ls -a
  635. 592 cd files
  636. 593 pwd
  637. 594 mount
  638. 595 history
  639. 596 mount
  640. 597 cd /
  641. 598 vim /etc/auto.master
  642. 599 vim /etc/auto.ldap
  643. 600 systemctl restart autofs
  644. 601 mount
  645. 602 cd /home/ldap
  646. 603 ls -a
  647. 604 cd ldapuser1
  648. 605 mount
  649. 606 cd ..
  650. 607 cd ldapuser2
  651. 608 mount
  652. 609 grep ldap /etc/auto.master
  653. 610 cat /etc/auto.ldap
  654. 611 reboot
  655. 612 ./countdown 35
  656. 613 ln -s /etc/hosts /tmp/myhosts
  657. 614 ls -l /tmp/myhosts
  658. 615 cd /etc/skel
  659. 616 touch myfile
  660. 617 vim /etc/login.defs
  661. 618 find / -size +100M >/tmp/bigiles
  662. 619 find / -size +100M >/tmp/bigfiles
  663. 620 vgs
  664. 621 fdisk /dev/sda
  665. 622 vgextend vgdata /dev/sda11
  666. 623 vgs
  667. 624 lvcreate -L 500M -n lv500 vgdata
  668. 625 mkfs.ext3 --help
  669. 626 mkfs.ext3 -L myvolume /dev/vgdata/lv500
  670. 627 vim /etc/fstab
  671. 628 mount -a
  672. 629 mkdir /myvol
  673. 630 mount -a
  674. 631 yum provides */sealert
  675. 632 yum install -y setroubleshoot-server
  676. 633 useradd -G profs anna
  677. 634 mkdir -p /data/profs
  678. 635 chown anna:profs /data/profs
  679. 636 chmod 1770 /data/profs
  680. 637 crontab -e
  681. 638 tail -F /var/log/messages
  682. 639 tail -f /var/log/messages
  683. 640 history
Add Comment
Please, Sign In to add comment