• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1679
  • Last Modified:

sudo service network restart not working !!

I am not able to restart the service

sudo service network restart

please find error

 sudo service network restart
sudo: service: command not found

0
jaisonshereen
Asked:
jaisonshereen
  • 2
1 Solution
 
jaisonshereenAuthor Commented:
Moreover i have the problem with

sudo ifconfig
sudo: ifconfig: command not found
0
 
Deepak KosarajuDevOps EngineerCommented:
Give Complete absolute path like
sudo /sbin/ifconfig
sudo /sbin/service network restart

If you are not sure where the command is located use command called
which <command name>
[user1@test04 ~]$ which service
/sbin/service

Gud luck
0
 
jaisonshereenAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now