arandr - GUI app to setup resolution, quite useful for multi monitor settings.
install like # yum install arandr.noarch -y
pkill sleep
Method 2: (need changes in script)
--------------------- // this is your script
# write the current session's PID to file
echo $$ >> myscript.pid
# go to sleep for a long time
sleep 1000
---------------------
# pkill -P $(<myscript.pid) sleep
df -T /path/to/the/file
# df -T ~/test.c
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/fedora--server-root ext4 27187420 3801608 21981704 15% /