hamidy

course udemy list

May 7th, 2022 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.42 KB | None | 0 0
  1. ringkasan ada di link ini https://telegra.ph/Automatic-Updates-ubuntu-05-03
  2. ==========
  3.  
  4. otomatis update ubuntu
  5. Update the system
  6.  
  7. On Ubuntu Linux you can run:
  8.  
  9. sudo apt update
  10. sudo apt upgrade
  11.  
  12.  
  13. Automatic Updates
  14.  
  15. Ubuntu Linux and Debian Linux support automatic updates.
  16.  
  17. To enable automatic updates, install the package unattended-upgrades.
  18.  
  19. sudo apt-get install unattended-upgrades
  20.  
  21. To configure
  22.  
  23. sudo dpkg-reconfigure unattended-upgrades
  24.  
  25. Then you get a menu where you can configure
  26.  
  27. Its still required to reboot manually. The status is stored in the file /var/run/reboot-required
  28.  
  29. If you want automatic rebooting, change the value in the file
  30.  
  31. sudo nano /etc/apt/apt.conf.d/50unattended-upgrades
  32. =======================
  33.  
  34. ================
  35. link alamat tor browser
  36.  
  37. Deep/Dark Links
  38.  
  39.  
  40. DuckduckGO onion Link: 3g2upl4pq6kufc4m.onion
  41. The hidden Wiki(1) Onion Link: http://zqktlwi4fecvo6ri.onion/wiki/index.php/Main_Page
  42. The hidden Wiki(2) Onion Link: http://jh32yv5zgayyyts3.onion/
  43. Excavator: http://2fd6cemt4gmccflhm6imvdfvli3nf7zn6rfrwpsy7uhxrgbypvwf5fad.onion/
  44.  
  45. =======================
  46.  
  47. https://att-c.udemycdn.com/2021-11-23_07-48-17-e94c1b59becbe7a3f94d2106c237aee5/original.pdf?response-content-disposition=attachment%3B+filename%3DCheat%2BScheet.pdf&Expires=1651594519&Signature=EC4K8Rl7HbKqqZlKypeM5Jlqrvn9DxpKOQ3ChweSoqD9ubMq6-yo7bQt9TL8U1bhZFxu4HnbAWH-xF8~a0EiTl2lvZCyK04rwO4Ly7qBslJ-CTmrGSkJOgUnmOnPGo3D4s70kMBKih3e-E9Z4whRsbKdpjPxasQa53lHlcvAac-zF6YpHecEQNVU4zXyeNDhHAtuF1wh7TZcIc-K0Cf1mh50Ni1d6hq-GeEfFKaVP7rzpP7H~eDklOpj2kzgSmaZmLl3-9nCtzV85Jy6jAuKoLu0~-qH6Vvuoknqe-7TFY0HYM9c0G5KfufaESBHusqJAVZGmLtweskWgPJ~Wp6fPQ__&Key-Pair-Id=APKAITJV77WS5ZT7262A
  48.  
  49.  
  50. ===========
  51.  
  52. link kursus udemy https://www.udemy.com/course/seo-strategy/learn/lecture/26773420#overview
  53.  
  54. dibawah ini adalah list atau clue dari hasilnya
  55.  
  56. https://www.semrush.com/siteaudit/ untk cek bitrates websites
  57.  
  58. uptimerobot.com
  59.  
  60. web archive
  61.  
  62. pingdomtools untuk cek kecepatan websites
  63.  
  64. ketik di google pagespppedinsigh
  65.  
  66. ketik di google mobile friendly tool
  67.  
  68. google search console
  69.  
  70. app.ahrefs.com
  71.  
  72. httpstatus.io
  73.  
  74. https://att-c.udemycdn.com/2021-06-24_04-57-26-8b7ade86bac5d0f65054494a1530b1b0/original.pdf?response-content-disposition=attachment%3B+filename%3DSEO%2BStrategy%2B2021.pptx.pdf&Expires=1651666658&Signature=gura1VcicM1DEXiOR-DZ~YLAvi7h-Py791i7nnBiqgzHAmTDmPJfS2oz-P9d5eks4wNEbIJpBeFe6kRUIQ0D6ozmIrTPNMX7YpwXDPVlVy9TlEU9bolOyJ3DEVybfeTNFQMgDxz0BT2bU-o4PeKVvH~CbMon-bEqWYNHt-kwgAr4QMgp60Q2npmk3BHSQz3MbuVQixGBAixMY5WnV2NftSYTuG1Baf703UDvVtW5jsyd5j9~EJlWMqWaizWEjQ~RCNqu9wFoIPBxK-U7b41YXfr9fZ5LbvhIPAxZnImuusuTkIMu~TzvNgm-gUfxgrNkV9Ym6woZO5QbMeCxJeoBxA__&Key-Pair-Id=APKAITJV77WS5ZT7262A
  75.  
  76. online.seranking.com
  77.  
  78. majestic.com
  79.  
  80. https://linkchecker.pro/
  81.  
  82. https://prnews.io/sites/
  83.  
  84. https://prnews.io/blog/
  85.  
  86. https://netpeaksoftware.com/spider
  87.  
  88. https://netpeaksoftware.com/checker
  89.  
  90. https://netpeaksoftware.com/blog/how-to-find-broken-links-with-netpeak-spider
  91.  
  92. ===============
  93.  
  94. https://www.udemy.com/course/learn-to-host-multiple-domains-on-one-virtual-server/learn/lecture/11272530#overview
  95.  
  96. dipembelajaran udemy ini ada cara instalasi php mysql phpmuadmin komplit di ubuntu server cocok untkdijadikan bahan
  97.  
  98. ==================
  99.  
  100. https://www.udemy.com/course/2020-linux-web-server-ha-cluster/learn/lecture/20638508#overview
  101.  
  102. All commands
  103.  
  104. iSCSI Server
  105.  
  106. ----------------------
  107.  
  108. yum install targetcli -y #install packages
  109.  
  110. Setup Disk:
  111.  
  112. lsblk #check list of blocks
  113.  
  114. pvcreate /dev/sdb #sbd should be replaced by your block disk.
  115.  
  116. vgcreate vg_iscsi /dev/sdb #vg_iscsi=you can set any name without space, and sbd should be replaced by your block disk.
  117.  
  118. lvcreate -l 100%FREE -n lv_iscsi vg_iscsi #lv_iscsi=you can set any name without space, and sbd should be replaced by your block disk.
  119.  
  120. targetcli
  121.  
  122. >> cd /backstores
  123.  
  124. >> cd block
  125.  
  126. >> create iscsi_storage /dev/vg_iscsi/lv_iscsi
  127.  
  128. >> cd /iscsi
  129.  
  130. >> create
  131.  
  132. >> cd iqn.<<TAB>>
  133.  
  134. >> cd tpg1/acls
  135.  
  136. >> create iqn.2020-06.com.example:server1
  137.  
  138. >> create iqn.2020-06.com.example:server2
  139.  
  140. >> cd /iscsi/iqn.<<TAB>>/tpg1/luns
  141.  
  142. >> create /backstores/block/iscsi_storage
  143.  
  144. >> cd /iscsi/iqn.<<TAB>>/tpg1/portals
  145.  
  146. >> create
  147.  
  148. >>cd /
  149.  
  150. >> ls
  151.  
  152. >> saveconfig
  153.  
  154. >> exit
  155.  
  156. systemctl enable target
  157.  
  158. systemctl restart target
  159.  
  160. firewall-cmd --permanent --add-port=3260/tcp
  161.  
  162. firewall-cmd --reload
  163.  
  164. server1 & server2
  165.  
  166. ---------------------
  167.  
  168. yum install iscsi-initiator-utils -y
  169.  
  170. server1:
  171.  
  172. ---------
  173.  
  174. echo 'InitiatorName=iqn.2020-06.com.example:server1' >> /etc/iscsi/initiatorname.iscsi
  175.  
  176. server2:
  177.  
  178. ---------
  179.  
  180. echo 'InitiatorName=iqn.2020-06.com.example:server2' >> /etc/iscsi/initiatorname.iscsi
  181.  
  182. server1 & server2
  183.  
  184. ---------------------
  185.  
  186. iscsiadm -m discovery -t st -p 192.168.1.8
  187.  
  188. systemctl restart iscsid iscsi
  189.  
  190. systemctl enable iscsid iscsi
  191.  
  192. Configure Shared Storage :
  193.  
  194. -------------------------------
  195.  
  196. [server1]
  197.  
  198. ----------
  199.  
  200. lsblk
  201.  
  202. pvcreate /dev/sdb
  203.  
  204. vgcreate vg_apache /dev/sdb
  205.  
  206. lvcreate -n lv_apache -l 100%FREE vg_apache
  207.  
  208. mkfs.ext4 /dev/vg_apache/lv_apache
  209.  
  210. [server2]
  211.  
  212. ----------
  213.  
  214. pvscan
  215.  
  216. vgscan
  217.  
  218. lvscan
  219.  
  220. lvdisplay /dev/vg_apache/lv_apache
  221.  
  222.  
  223. # If still not appear, please do restart the server.
  224.  
  225.  
  226. Install cluster packages:
  227.  
  228. ----------------------------
  229.  
  230. [server1 & server2]
  231.  
  232. ----------------------
  233.  
  234. yum install pcs fence-agents-all -y
  235.  
  236. firewall-cmd --permanent --add-service=high-availability
  237.  
  238. firewall-cmd --reload
  239.  
  240. passwd hacluster
  241.  
  242. systemctl start pcsd
  243.  
  244. systemctl enable pcsd
  245.  
  246. [Create a HA Cluster]:
  247.  
  248. -------------------------
  249.  
  250. pcs cluster auth server1.example.com server2.example.com
  251.  
  252. Username: hacluster
  253.  
  254. Password:
  255.  
  256. pcs cluster setup --start --name techfrost_cluster server1.example.com server2.example.com
  257.  
  258. pcs cluster enable --all
  259.  
  260. pcs cluster status
  261.  
  262. pcs status
  263.  
  264. [Creating Cluster Resource]:
  265.  
  266. --------------------------------
  267.  
  268. [server1 & Server2]
  269.  
  270. ----------------------
  271.  
  272. yum install -y httpd wget
  273.  
  274. vim /etc/httpd/conf/httpd.conf
  275.  
  276. <Location /ha-status>
  277.  
  278. SetHandler server-status
  279.  
  280. Order deny,allow
  281.  
  282. Deny from all
  283.  
  284. Allow from 127.0.0.1
  285.  
  286. </Location>
  287.  
  288. [server1]
  289.  
  290. ----------
  291.  
  292. mount /dev/vg_apache/lv_apache /var/www/
  293.  
  294. mkdir /var/www/{html,cgi-bin,error}
  295.  
  296. restorecon -RvF /var/www
  297.  
  298. vim /var/www/html/index.html
  299.  
  300. <html>
  301.  
  302. <body>
  303.  
  304. Hello.
  305.  
  306. <br>Welcome to Tech Frost: Linux Web Server High Avaibalibility Cluster tutorial.
  307.  
  308. <br>This content is served from Central stgorage.
  309.  
  310. </body>
  311.  
  312. </html>
  313.  
  314. umount /var/www
  315.  
  316. [server1 & Server2]
  317.  
  318. ----------------------
  319.  
  320. firewall-cmd --permanent --add-service=http
  321.  
  322. firewall-cmd --reload
  323.  
  324. [server1]
  325.  
  326. ----------
  327.  
  328. pcs resource create <Name> Filesystem device="/dev/mapper/vg_apache-lv_apache" directory="/var/www" fstype="ext4" --group apache
  329.  
  330. pcs resource create <Virtual_IP_Name> ocf:heartbeat:IPaddr2 ip=192.168.1.15 cidr_netmask=24 --group apache
  331.  
  332. pcs resource create chk_http_service apache configfile="/etc/httpd/conf/httpd.conf" statusurl="http://127.0.0.1/ha-status" --group apache
  333.  
  334. pcs property set stonith-enabled=false
  335.  
  336. pcs status
  337.  
  338. Browser: http://192.168.1.15
  339.  
  340. pcs cluster stop server1.example.com
  341.  
  342. pcs status
  343.  
  344. Browser: http://192.168.1.15
  345.  
  346. pcs cluster start server1.example.com
  347.  
  348. pcs status
  349.  
  350. Browser: http://192.168.1.15
  351.  
  352. pcs cluster stop server2.example.com
  353.  
  354. pcs status
  355.  
  356. Browser: http://192.168.1.15
  357.  
  358. pcs cluster start server2.example.com
  359.  
  360. pcs status
  361.  
  362. ===============================
  363.  
  364. sebuah situs yang bersisi tentang perintah2 dilinux
  365.  
  366. https://app.memrise.com/course/755711/linux-enumeration-privilege-escalation/2/?action=prev
  367.  
  368. ==================
  369.  
  370.  
  371. +++++++++++++++++++++++++++++ beirkut ini adalah list dari exam UDEMY untuk REDHAT+++++++++++++++++++++++++++++++++
  372. RHCSA Practice Exam
  373.  
  374. Virtual Machine
  375. Additional Information:
  376. IP ADDR - 172.25.X.11
  377. GATEWAY- 172.25.X.254
  378. HOSTNAME - serverX.example.com
  379. DNS/NAME SERVER -172.25.254.254
  380. new root psswd - postroll
  381. YUM Server:- http://content.example.com/rhel8.0/x86_64/dvd/
  382. -------------------------------------------------------------------------------------------------------------------------
  383. *****u have to reset your root passwd*****
  384.  
  385. 1:-jst restart your system
  386. 2:-press up down arrow
  387. 3:-press e
  388. 4:-go to end of linux16 line
  389. 5:-jst give space and type rd.break
  390. and remove that both words ( console=tty console=ttys0)
  391. 6:-ctrl+x
  392.  
  393. # mount -oremount,rw /sysroot
  394. #chroot /sysroot
  395. #passwd root
  396. type new passwd:-redhat
  397. retype same passwd:-redhat
  398. #touch /.autorelabel
  399. #exit
  400. #exit
  401. #########################################################################################################################
  402. #login name:root
  403. #Password:
  404. #systemctl isolate graphical.target
  405.  
  406.  
  407. ##########################################################################################################################
  408. ##############Set proper network #####################
  409. #nmcli con show
  410. # nmcli con mod eth0 ipv4.addresses '172.25.X 11/24 172.25.X.254' ipv4.dns '172.25.254.254' connection.autoconnect yes ipv4.method manual
  411. #nmcli con up eth0
  412. #hostnamectl set-hostname serverX.example.com
  413. #ping 172.25.254.254
  414. #ping 172.25.X.254
  415.  
  416.  
  417.  
  418. ##########################################################################################################################
  419. 1. SELINUX
  420. -set selinux to enforcing mode
  421.  
  422. #sestatus
  423. #setenforce 1
  424. #vim /etc/selinux/config
  425. insert
  426. SELINUX=enforcing
  427. :wq
  428. #sestatus
  429.  
  430. #############################################################################################################################
  431.  
  432. 2)Create a repo by using url http://content.example.com/rhel7.0/x86_64/dvd
  433. #cd /etc/yum.repos.d
  434. #vim base.repo
  435. (insert)
  436. [1]
  437. name=redhat
  438. baseurl=http://content.example.com/rhel7.0/x86_64/dvd/
  439. enabled=1
  440. gpgcheck=0
  441. :wq
  442. #yum clean all
  443. #yum repolist (it should be hving almost 4305 rpm packages)
  444. ###########################################################################################################################
  445. 2.LVM
  446. -extend your /mnt/lvm to 950M {ans should between 850M-960M}
  447.  
  448. #df -hT /mnt/lvm
  449.  
  450. #lvextend -r -L 950M /dev/mapper/vggroup/wshare
  451.  
  452. #df -h /mnt/lvm
  453.  
  454.  
  455. ###############################################################################################################################
  456.  
  457. ---------------------------------------------------------------------------------------------------------------------------
  458. 3.Usermgmt
  459. -Create a group sysadmin .Create users tom , jerry & harry .
  460. -Users tom & jerry should be a part of the sysadmin group.
  461. -harry should not be a part of that group.
  462. -he is given an non interactive shell.password of all users are "password"
  463. #groupadd sysadmin
  464. #useradd -G sysadmin tom
  465. #useradd -G sysadmin jerry
  466. #useradd -s /sbin/nologin harry
  467. #su - harry
  468. #echo "password" |passwd --stdin tom #passwd tom
  469. #echo "password" |passwd --stdin harry OR #passwd harry
  470. #echo "password" |passwd --stdin jerry #passwd jerry
  471.  
  472. ##############################################################################################################################
  473.  
  474.  
  475. ---------------------------------------------------------------------------------------------------------------------------
  476. 4.ACL
  477. -Copy /etc/fstab to /var/tmp/fstab.
  478. -The user & group owner of that file should be root .
  479. -All users should be able to read the file,No one should be able to execute.
  480. -tom should not be able to read nor write . jerry should be able to read & write.
  481.  
  482. #cp /etc/fstab /var/tmp/fstab
  483. #getfacl /var/tmp/fstab
  484. #setfacl -m u:tom:- /var/tmp/fstab
  485. #setfacl -m u:jerry:rw /var/tmp/fstab
  486. #getfacl /var/tmp/fstab
  487.  
  488. ###############################################################################################################################
  489.  
  490.  
  491. ----------------------------------------------------------------------------------------------------------------------
  492. 5.direct collaboration special permission
  493. -create directory /data such that only group sysadmin have all access on it .
  494. - Group owner should be sysadmin,all child directories files by default should have group sysadmin.
  495.  
  496.  
  497. #mkdir /data
  498. #ls -ld /data
  499. #chgrp sysadmin /data
  500. #chmod 2070 /data
  501. #cd /data
  502. #touch p1 p2 p3
  503. #ll
  504. ###########################################################################################################################
  505.  
  506. ---------------------------------------------------------------------------------------------------------------------------
  507. 6.LDAP
  508. -Configure an ldap client,
  509. -Authenticate your ldap server using the certificate http://classroom.example.com/pub/example-ca.crt
  510.  
  511.  
  512.  
  513. # yum install authconfig-gtk sssd
  514. # authconfig-gtk
  515. User Acc
  516. user acc database:- LDAP
  517. LDAP search base DN:-dc=example,dc=com
  518. LDAP Server:- classroom.example.com
  519. *use TLS to encrypt connection
  520. download CA certificate
  521. http://classroom.example.com/pub/example-ca.crt
  522. password:LDAP password
  523.  
  524. apply
  525.  
  526. #ssh ldapuserX@localhost
  527. #password:password
  528. #pwd
  529. # exit
  530.  
  531. #####################################################################################################################################################
  532.  
  533. -----------------------------------------------------------------------------------------------------------------------------------------------------
  534. 7.NTP
  535. -Configure Your NTP server should be synchronize with classroom.example.com
  536. #timedatectl
  537. #vim /etc/chrony.conf
  538. remove 4 line of iburst
  539. then enter server name
  540. (insert)
  541. server classroom.example.com iburst
  542. :wq
  543. #systemctl restart chronyd
  544. #chronyc sources -v
  545. #timedatectl
  546.  
  547. ####################################################################################################################################################
  548.  
  549. ---------------------------------------------------------------------------------------------------------------------------------------------------
  550. 8.Autofs
  551. -you can use the user ldapuserX,with the passwd password.
  552. -home directories for your LDAP users should be automatically mounted on access.
  553. -these home directories are served from the NFS share classroom.example.com:/home/guests/ldapuserX
  554.  
  555.  
  556. #yum -y install autofs
  557. #systemctl enable autofs
  558. #systemctl start autofs
  559. #vim /etc/auto.master
  560. insert
  561. /home/guests /etc/auto.misc
  562. :wq
  563. #vim /etc/auto.misc
  564. insert
  565. ldapuserX -rw,sync classroom.example.com:/home/guests/ldapuserX
  566. :wq
  567. #systemctl restart autofs
  568. #ssh ldapuserX@localhost
  569. password:-password
  570. #pwd
  571. check home dir:- /home/guests/ldapuserX
  572. ################################################################################################################################################
  573.  
  574.  
  575.  
  576. ---------------------------------------------------------------------------------------------------------------------------------------------
  577.  
  578. 9.Kernel
  579. -Install the kernel from the site http://content.example.com/rhel7.0/x86_64/errata
  580. -The newly installed kernel should be default kernel .
  581. -The previous kernel should be available & bootable at grub .
  582.  
  583. #cd /etc/yum.repos.d
  584. #vim kernel.repo
  585. insert
  586. [update]
  587. name=update
  588. baseurl=http://content.example.com/rhel7.0/x86_64/errata/
  589. enabled=1
  590. gpgcheck=0
  591. :wq
  592. #yum clean all
  593. #yum repolist (it should be hving almost 3 rpm packages
  594. #yum -y update
  595. #reboot
  596. ###########################################################################################################################################
  597.  
  598.  
  599. --------------------------------------------------------------------------------------------------------------------------------------------
  600. 10.cron
  601. -Add a cron job for the user jane /bin/echo hiya .
  602. -This job should run every day at 1:30pm .
  603. # useradd jane
  604. #crontab -e -u jane
  605. insert
  606. 30 13 * * * /bin/echo hiya
  607. :wq
  608. #crontab -l -u jane
  609.  
  610. ############################################################################################################################################
  611.  
  612.  
  613. ---------------------------------------------------------------------------------------------------------------------------------------------
  614. 11.swap
  615. Create a Swap partition of 100MB mount it persistantly
  616. #fdisk -l
  617. #fdisk /dev/vda
  618. n
  619. e
  620. 1st sector :-
  621. last sector:-
  622. n
  623. 1st sector :-
  624. last sector:-+100M
  625. t
  626. 82
  627. w
  628. #partprobe
  629. #mkswap /dev/vda5
  630. #swapon /dev/vda5
  631. #blkid
  632. #vim /etc/fsatb
  633. insert
  634. UUID="XXXXXXXXXXXXX" swap swap defaults 0 0
  635. :wq
  636. #mount -a
  637. #swapon -s
  638. #free -h
  639. #######################################################################################################################
  640.  
  641.  
  642. ------------------------------------------------------------------------------------------------------------------------
  643. 12.
  644. -synchronize the /etc directory to the /configbackup directory
  645. -Create an archive named /root/configuration-backup-server.tar.gz with the /configbackup directory as content.
  646.  
  647.  
  648. # rsync -av /etc /configbackup
  649. #tar czf /root/configuration-backup-sever.tar.gz /configbackup
  650.  
  651. ############################################################################################################################################################################
  652. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  653. 13.UID
  654. -user of Specific UID
  655. -Create a user jean .User id of this user should be 3564 .
  656.  
  657. # useradd -u 3564 jean
  658. # id jean
  659. ################################# #############################################################################################################################################
  660.  
  661. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  662. 14.find
  663. -locate all files owned by user sasha & copy them to /home/lost+found/
  664. #id sasha
  665. #mkdir /home/lost+found
  666.  
  667. # find / -user sasha -exec cp -vp {} /home/lost+found/ \;
  668.  
  669. ########################################################################################################################################################################
  670.  
  671. -----------------------------------------------------------------------------------------------------------------------------------------------------------
  672.  
  673. ###################################################################################################################################################################################################################################################################################################################################################################################
  674.  
  675. 15.lvm
  676. -Create a logical volume lvmgroup from the volume group v2group .
  677. -The volume group should have extents of size 16 . The logical volume
  678. -should have 100 extents . Mount this lvm as /mnt/lvm2 .
  679.  
  680. #fdisk /dev/vda
  681. n
  682. 1st sector:-
  683. last sector:-+2G
  684. t
  685. 8e
  686. p
  687. w
  688. #partprobe
  689. #pvcreate /dev/vda5
  690. #vgreate -s 16M v2group /dev/vda5
  691. #lvcreate -l 100 -n lvmgroup v2group
  692. #mkfs -t xfs /dev/mapper/v2group/lvmgroup
  693. #mkdir /mnt/lvm
  694. #blkid
  695. #vim /etc/fstab
  696. insert
  697. UUID.... /mnt/lvm xfs defaults 0 0
  698. :wq
  699. #mount -a
  700. #df -h
  701. #####################################################################################################################################
  702.  
  703. ----------------------------------------------------------------------------------------------------------------------------------------
  704. 16.
  705. -Diplay the first 12 lines of the /usr/bin/clean-binary-file and send the output to the /home/student/headtail.txt file.
  706.  
  707. #head -n 12 /usr/bin/bin/clean-binary-files > /home/student/headtail.txt
  708. ##########################################################################################################################################
  709.  
  710. ------------------------------------------------------------------------------------------------------------------------------
  711.  
  712.  
  713. ------------------------------------------------------------------------------------------------------------------------------------------------------
  714. 17
  715. .Record the command to display all systemd journal entries recorded between 9:05:00 and 9:15:00 in the /home/student/systemdreview.txt
  716. ans:-
  717. #echo "journalctl --since 9:05:00 --until 9:15:00" > /home/student/systemdreview.txt
  718. #cat /home/student/systemdreview.txt
  719.  
  720. ##################################################################################################################################################################
  721. 18
  722. Deny user sasha to create cron job for herself.
  723. #vim /etc/cron.deny
  724. insert
  725. sasha
  726. :wq
  727. #su - sasha
  728. $crontab -e
  729. ERROrrrrrr
  730. ###################################################################################################################################################
  731. 19.grep
  732. -Search for the text 'strato' in the file /usr/share/dict/words & copy this to a file
  733. -/root/lines.txt .The new file should not have any blank spaces or lines .
  734. -The order of the names in the new file should be same as the order in which it appears
  735. in the original file
  736.  
  737. # grep strato /usr/share/dict/words > /root/lines.txt
  738. ################################################################################################################################################
  739. https://www.udemy.com/course/fast-track-red-hat-enterprise-linux-rhcsa-with-vms/learn/lecture/14261590#overview
  740. ada sesi di section7 yang menerangkan cara latian semuanya dengan menggunakan Redhat
  741. +++++++++++++++++++++++++++++++++++++++++++
  742.  
  743.  
  744.  
  745.  
Add Comment
Please, Sign In to add comment