473,569 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to restart by using terminal?

5 New Member
where can i get unix tutorials that explain with tecniques ?
Nov 6 '09 #1
6 5537
Banfa
9,065 Recognized Expert Moderator Expert
use the command

reboot
Nov 6 '09 #2
vipin sharma
16 New Member
To reboot:
1) reboot
2) reboot -f

Second command will immediately restart your system.
Nov 7 '09 #3
anurag275125
79 New Member
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 New Member
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 Recognized Expert Moderator Expert
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 New Member
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
5560
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 help is greatly appreciated! Josh
4
2284
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 COM object, and 3. restart IIS. Is there any way that I can move the newest COM object DLLs to the WINNT/SYSTEM32 directory, without having to...
5
1831
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 codes)? I have tried put some data on the intranet using DAP, but it's not as feature-rich as teh original application. I also heard of Citrix...
3
3193
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 causes a web-app restart ... ? Also, is a stopping and starting a website in IIS the only way to restart a web-app ? (Of course, iisreset stops and...
8
2727
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 desktop ( On windows 2003 Server ), I need to determine in the code the machine name and username. If I use GetUsername and GetMachineName, it simply...
6
3793
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() ServiceController.WaitForStatus(ServiceControllerStatus.Stopped) ServiceController.start() but doesn´t works. It seems waitforstatus instruction is the last
5
1777
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 = System.Configuration.ConfigurationSettings.AppSettings(CONFIG_EMAILBCC) Try With cdoMsg
20
10825
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 included a code snippet from Chuck Blake 'ls' app in python. It seems to do the job just fine on my comp, but regrettably, I'm not sassy enough to...
0
1925
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 Port. Using VB MSCOMM ActiveX control, I am managed to receive Data from POS Terminal but when i try to send data (Less than 100 Bytes) to POS...
1
4604
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 contents of the page at runtime via the web interface and we do a XSLT transformation and store the contents of the .aspx pages in the database. The .aspx...
0
7694
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7921
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.