naz-mul
6/16/2017 - 9:24 AM

Fedora configurations

Fedora configurations

#!/bin/bash

sudo chmod 755 filename.run
sudo ./filename.run
#!/bin/bash

sudo sysctl -w vm.drop_caches=3
sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
#!/bin/bash

# These instructions apply to CentOS distros
sudo nano /etc/init.d/service-name

# write your script 

# make sure it has chkconfig header like below
# #!/bin/sh
# chkconfig: 0123456 95 20
# description: A foo service.
# processname: foo

# Add service called foo
sudo chkconfig --add foo

# Del service called foo
sudo chkconfig --del foo

# List status for foo
chkconfig --list foo

# Turn on or off services
sudo chkconfig foo on
sudo chkconfig foo off
sudo chkconfig --level 2 foo on
sudo chkconfig --level 35 foo on
#!/bin/bash

lspci -k | grep -A 2 VGA