Advertisement
pan7nikt

sysop_zad1

Mar 4th, 2024
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. #!/bin/bash -l
  2. #echo "${PS1@P} amogus"; i moze byc jescze -v
  3. #also change TTY id as prompt shows that
  4. #run the command that do not require root as a regular user
  5. clear
  6. echo "${PS1@P} /home/nazwauzytkownika/./sysop_vm_check-2024 indeks";
  7. sudo /home/nazwauzytkownika/./sysop_vm_check-2024 indeks;
  8.  
  9. sleep 5;
  10.  
  11. echo "${PS1@P} cat /root/anaconda-ks.cfg";
  12. sudo cat /root/anaconda-ks.cfg;
  13.  
  14. echo "${PS1@P} lscpu";
  15. lscpu;
  16.  
  17. sleep 5;
  18.  
  19. echo "${PS1@P} lsmem";
  20. lsmem;
  21.  
  22. sleep 5;
  23.  
  24. echo "${PS1@P} lsblk";
  25. lsblk;
  26.  
  27. sleep 5;
  28.  
  29. echo "${PS1@P} parted -l";
  30. sudo parted -l;
  31.  
  32. sleep 5;
  33.  
  34. echo "${PS1@P} vgdisplay fedora";
  35. sudo vgdisplay fedora;
  36.  
  37. sleep 5;
  38.  
  39. echo "${PS1@P} df -hT";
  40. df -hT;
  41.  
  42. #Tutaj trzeba bedzie jeszcze wykonac:
  43. #stat -f /<mountpoint>
  44.  
  45. #echo "${PS2@P}";
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement