LinuxQuestions.org
Visit Jeremy's Blog.
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 11-14-2002, 07:28 PM   #1
whaase
Member
 
Registered: Aug 2002
Location: Calgary, Alberta, Canada
Distribution: Ubuntu Server, Ubuntu Desktop
Posts: 128

Rep: Reputation: 15
What scripts?


I was curious as to what scripts were executed when the reboot command was entered?

Walter
 
Old 11-14-2002, 07:34 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
man init, reboot: runlevel 6.
/etc/rc.d/rc and the scripts in /etc/rc.d/rc6.d
 
Old 11-14-2002, 08:12 PM   #3
whaase
Member
 
Registered: Aug 2002
Location: Calgary, Alberta, Canada
Distribution: Ubuntu Server, Ubuntu Desktop
Posts: 128

Original Poster
Rep: Reputation: 15
Duhhhh, ok, I asked for the wrong command (Man I'm a dumb ass sometimes I meant when i'm logged in (no X) and I type 'exit' and return to a 'user' prompt. So I guess what I'm trying to ask is there a way to clear the screen after typing 'exit' and returning to a prompt?

Walter
 
Old 11-14-2002, 08:55 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
If your asking what runlevel is used if your in X and you logout of X to just a command prompt ? If that is it, most likely I would think would be runlevel 3 with most Linux systems.
 
Old 11-14-2002, 10:03 PM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
I thing he's asking about what happens when he logs out of the console and returns to the login prompt. I guess he's worried about leaving small snapshots of what he was doing on the console right before logging out.

On most systems, when you type exit at the console, your shell just quits and returns you to the prompt. tcsh does have a .logout script for customizing your logouts; however, bash is typically the default shell. The easiest thing to do is just get in the habit of typing "clear; exit" to logout. Perhaps you could create an alias for this if you really wanted to.
 
Old 11-14-2002, 10:56 PM   #6
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
whasse:
in your home directory, there should be a script called .bash_logout

I believe that might be what you are looking for.

-K.
 
Old 11-14-2002, 11:42 PM   #7
whaase
Member
 
Registered: Aug 2002
Location: Calgary, Alberta, Canada
Distribution: Ubuntu Server, Ubuntu Desktop
Posts: 128

Original Poster
Rep: Reputation: 15
Thank you

Walter.
 
  


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
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 01:10 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 01:56 PM
What scripts would you like to see? kittani Linux - Software 1 05-20-2004 04:26 AM
Scripts? zombie killa Linux - Software 5 05-29-2003 06:19 PM
scripts mdjames0 Linux - Newbie 4 08-02-2002 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 AM.

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