LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2008, 04:51 AM   #1
errorsunknownp
Member
 
Registered: Dec 2008
Location: Nepal
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Talking 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?
 
Old 12-17-2008, 04:59 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by errorsunknownp View Post
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
 
Old 12-17-2008, 05:01 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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

Last edited by repo; 12-17-2008 at 05:02 AM.
 
Old 12-17-2008, 05:38 AM   #4
benoy4007
Member
 
Registered: Jun 2004
Location: India
Distribution: Red Hat
Posts: 30

Rep: Reputation: 15
All this need root acess or sudo rights.
Ask the same to your adimn.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting time and time zone altogether properly in Slack-current, KDE4 spaceballs Slackware 3 04-20-2011 06:15 AM
time on our RH linux FTP server is four hours ahead, but desktop time is correct?? dgr Linux - Newbie 10 10-09-2007 06:42 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 09:12 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - Networking 6 03-16-2007 08:14 PM


All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration