LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Just Two help for this time (https://www.linuxquestions.org/questions/linux-newbie-8/just-two-help-for-this-time-691160/)

errorsunknownp 12-17-2008 03:51 AM

Just Two help for this time
 
What is the code to shut down computer(in shell)?

And

When I typed and enter /etc/inittab
It answered that permission denied.Why?

sycamorex 12-17-2008 03:59 AM

Quote:

Originally Posted by errorsunknownp (Post 3378319)
What is the code to shut down computer(in shell)?

And

When I typed and enter /etc/inittab
It answered that permission denied.Why?

1. shutdown -h now
2. because you need to be root before editing any system files. To become root you need to type 'su' meaning 'super user' and then type your root password

repo 12-17-2008 04:01 AM

Quote:

What is the code to shut down computer(in shell)?
shutdown -h now

Quote:

When I typed and enter /etc/inittab
It answered that permission denied.Why?
Because you try to execute this file, and it is not executable
try cat /etc/inittab to view the file or
vi /etc/inittab to change the contents

benoy4007 12-17-2008 04:38 AM

All this need root acess or sudo rights.
Ask the same to your adimn.


All times are GMT -5. The time now is 03:04 PM.