473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to restart by using terminal?

where can i get unix tutorials that explain with tecniques ?
Nov 6 '09 #1
6 5529
Banfa
9,065 Expert Mod 8TB
use the command

reboot
Nov 6 '09 #2
To reboot:
1) reboot
2) reboot -f

Second command will immediately restart your system.
Nov 7 '09 #3
There are three ways to reboot Linux system from console---
1. # shutdown -r <minutes>
The system will restart after <minutes>
2. reboot
This will immediately restart the computer
3. Type init 6 at console
There are 6 run-levels in init process which defines the state of the computer. Run-level 6 is the restart mode.

You can only use these techniques when logged in as root.
Jan 27 '10 #4
Time
77
hi ppl,
I tried all the commands above:
reboot
reboot -f
shutdown -1

i got the message that i need to be root
after that i wrote the command root as i had installed it several days ago
by sudo api-get install root
but all the three commands gave the output:
respective command name not defined in current scope(tmpfile):1:.
(const int)(-1)
Do i need to make some changes in my root?
I get following message whenever i write root:
*
* W E L C O M E to R O O T *
* *
* Version 5.18/00b 10 March 2008 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************

ROOT 5.18/00b (branches/v5-18-00-patches@22563, Mar 20 2009, 00:44:00 on linux)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
Feb 11 '10 #5
Banfa
9,065 Expert Mod 8TB
Did you try

sudo reboot

?

On Ubuntu (and similar distros) needing to be root doesn't mean downloading additional software as root is a built in user of the system. It means using sudo; super user do root being the ultimate super user.
Feb 11 '10 #6
Time
77
Yeah, sudo reboot is working.
Thanks a lot.
Feb 15 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Josh Schmidt | last post by:
How can one set the terminal services profile and home directory path in AD using VB.NET? I can set the usual profile paths, but terminal services properties are not supported with ADSI. Any...
4
by: Wendy Elizabeth | last post by:
I am working with 2 com object dlls that are located in WINNT/SYSTEM32 directory. When I need to make changes to the DLLs, I need to do the following: 1. stop IIS 2. unregister and register the 2...
5
by: NB | last post by:
In a small business environment where budget does not allow more licence for Access, is there any way to have more users to use the current Access application (built on Access 2002 and VBA with DAO...
3
by: John A Grandy | last post by:
In ASP.NET 1.1 and/or 2.0 ..... Is it possible to configure a web-app so that replacement of an .xml file ( physically located under the virtual dir root ) with a newer version of the file...
8
by: OHM | last post by:
Hi peoples, I dont know where to place this question, so as I know you guys are all resourceful experts, I thought I would try here. I am writing some code which will be run usingh remote...
6
by: Leonardo Curros | last post by:
Hello, I would like to know what's the best way to restart one service. I would like to do it from the service itself. Is this possible? I try it with ServiceController.stop()...
5
by: Richard | last post by:
Working in asp.net I send out an email using the following Code: Dim cdoMsg As New System.Web.Mail.MailMessage Dim strEmailBCC As String = "" strEmailBCC =...
20
by: Joel Hedlund | last post by:
Hi all! I use python for writing terminal applications and I have been bothered by how hard it seems to be to determine the terminal size. What is the best way of doing this? At the end I've...
0
by: shehzadmajeed | last post by:
I am a Point of Sale Terminal Programmer/Developer and currently assigned to develop a VTI Simulator (Virtual Terminal Interface) than can exchange messages as per Specification through RS232-COM...
1
by: Sriram Srivatsan | last post by:
Hi We are trying to build an application where we render some of the .aspx pages from the database using a class derived from System.Web.Hosting.VirtualPathProvider. Users configure the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.