How to start a terminal with command in centos?


#1

Hi Guys,

Hope everyone are doing good

I need a help and script to do following things in Centos 6.7 server which is running in cloud Service.

I want to start a terminal with commands after the rebooting the server, the terminal needs to execute with command, please advice any shell script to do.

I found my ways but it wont helped me pls see for reference


https://www.centos.org/forums/viewtopic.php?t=21985


#2

Hi,

If you want run commands after reboot ,you can add those in /etc/rc.local file.


#3

Hi,

I didn’t get your query, Jacklogic also shared you suggestion. I guess you are using Linux in GUI mode, you can load linux in terminal mode, You will not get GUI there. In Linux its says ‘Change the runlevel’.

Go to the “/etc/inittab” file and change the boot runlevel 5 to 3.

id:3:initdefault:

and reboot the server or type "# init 3’ you will get there.