LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 06: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, 06:34 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
man init, reboot: runlevel 6.
/etc/rc.d/rc and the scripts in /etc/rc.d/rc6.d
 
Old 11-14-2002, 07: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, 07:55 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 09: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, 09: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, 10: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



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 12:10 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 12:56 PM
What scripts would you like to see? kittani Linux - Software 1 05-20-2004 03:26 AM
Scripts? zombie killa Linux - Software 5 05-29-2003 05:19 PM
scripts mdjames0 Linux - Newbie 4 08-02-2002 09:10 PM

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

All times are GMT -5. The time now is 02:40 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
Open Source Consulting | Domain Registration