Write a script to run several commands ???
I am using fedora distribution. There are few commands i have to enter to for a project involved such as below:
# echo 0 > /proc/sys/net/ipv6/conf/eth0/forwarding
# echo 1 > /proc/sys/net/ipv6/conf/eth0/autoconf
# echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra
# echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_redirects
May I know is there possible to write a script to run the several commands in terminal if I don't want type the command line by line?
If yes, can you tell me how to do so? Because I have never do so before.
Just copy those lines into a new file, removing the leading #.
then use chmod +x to give it execute permission.
That should be about it.
|All times are GMT -5. The time now is 01:26 AM.|