Ubuntu
How to start or stop or restart a service in Fedora/RHEL/Ubuntu/Debian Linux
Oct 11th
The following examples show how to start or stop or restart a service in different flavours of Linux. In all these examples, the service name “httpd” is used. You can replace it with name of the service you want to start or stop or restart.
Starting a serviceIn RHEL or Fedora:
[root@techpulp ~]# service httpd start
or
[root@techpulp ~]# /etc/init.d/httpd start
In Debian Linux:
[root@techpulp ~]# /etc/init.d/httpd start
In Ubuntu Linux:
[root@techpulp ~]# sudo /etc/init.d/httpd startStopping a service
In RHEL or Fedora:
[root@techpulp ~]# service httpd stop
or
[root@techpulp ~]# /etc/init.d/httpd stop
In Debian Linux:
[root@techpulp ~]# /etc/init.d/httpd stop
In Ubuntu Linux:
[root@techpulp ~]# sudo /etc/init.d/httpd stopRestarting a service
In RHEL or Fedora:
[root@techpulp ~]# service httpd restart
or
[root@techpulp More >
How to get a shell with root access in Ubuntu similar to “su” in RedHat or Fedora Linux
May 8th
In RedHat or Fedora systems, you will separate passwords and separate user accounts for root and non-root user.
But in Ubuntu, the default user already has root privileges but not allowed to run any command that requires root privileges directly. Instead the user needs to use “sudo” command to invoke any command that requires root privileges. However this is little bit inconvenient if one (especially a RedHat/Fedora user who is used to “su” command) is sick of “sudo” command and wants a full shell access with root privileges.
In Ubuntu, you need to provide self password whenever “sudo” command prompts for password.
There More >


Recent Comments