Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -l
- #echo "${PS1@P} amogus"; i moze byc jescze -v
- #also change TTY id as prompt shows that
- #run the command that do not require root as a regular user
- clear
- echo "${PS1@P} /home/nazwauzytkownika/./sysop_vm_check-2024 indeks";
- sudo /home/nazwauzytkownika/./sysop_vm_check-2024 indeks;
- sleep 5;
- echo "${PS1@P} cat /root/anaconda-ks.cfg";
- sudo cat /root/anaconda-ks.cfg;
- echo "${PS1@P} lscpu";
- lscpu;
- sleep 5;
- echo "${PS1@P} lsmem";
- lsmem;
- sleep 5;
- echo "${PS1@P} lsblk";
- lsblk;
- sleep 5;
- echo "${PS1@P} parted -l";
- sudo parted -l;
- sleep 5;
- echo "${PS1@P} vgdisplay fedora";
- sudo vgdisplay fedora;
- sleep 5;
- echo "${PS1@P} df -hT";
- df -hT;
- #Tutaj trzeba bedzie jeszcze wykonac:
- #stat -f /<mountpoint>
- #echo "${PS2@P}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement