sudo command
or
su
if you want to stay root.
I know this sounds really stupid but how do you run scripts as root. i have an install if that makes a difference.
sudo command
or
su
if you want to stay root.
But say that I had a script in my home, called SCRIPT, then how would I run that as root.
sudo ./scriptOriginally Posted by adamherb
or if you are not in the sudoers list
su
enter root password if needed
then
./script
the file has to be executable
chmod +x script
linux is case sensitive, so if it is SCRIPT you must type it as such.

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX
$59.99
Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery
$54.99
Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)
$29.90
ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU
$45.00
GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard
$59.99
ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio
$34.99
ASRock B550M PRO4 AM4 AMD B550 SATA 6Gb/s Micro ATX AMD Motherboard
$76.49
ASRock AMD BC-250 16GB 128GB SSD Used
$220.00
MSI B460M-A Pro DDR4 LGA 1200 Micro ATX Motherboard 10th Gen
$59.99
ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield
$84.99