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-11-2005, 11:45 PM   #1
Orian
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Login Scripts??? Help


Hey
I need to set up a login script to run each time I login to RedHat (7.3) to set up environmet variables.

Thanks Orian
 
Old 11-12-2005, 12:33 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
try adding the commands you want into .bashrc or .bash_profile in the home directory of the user. (all files starting with . are hidden files. Try ls -a to see them)
 
Old 11-12-2005, 08:49 AM   #3
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Quote:
Originally posted by perfect_circle
Try ls -a to see them)
Use ls -A, and it'll still hide the . and .. directories.
 
Old 11-12-2005, 02:29 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally posted by eddiebaby1023
Use ls -A, and it'll still hide the . and .. directories.
Of course
Code:
NAME
       ls - list directory contents

SYNOPSIS
       ls [OPTION]... [FILE]...

DESCRIPTION
       List  information  about  the  FILEs  (the current directory by default).
       Sort entries alphabetically if none of -cftuSUX nor --sort.

       Mandatory arguments to long options are mandatory for short options  too.

       -a, --all
              do not hide entries starting with .

       -A, --almost-all
              do not list implied . and ..
 
  


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
Login Scripts DarkNecromancer Linux - General 4 05-11-2005 10:26 AM
login Scripts meenalborkar Linux - General 14 02-18-2005 12:10 AM
Executing scripts upon login jungatheart Linux - Newbie 3 04-19-2004 07:06 PM
login scripts? C++freak Linux - Networking 5 08-08-2003 11:15 AM
Login Scripts ppuddick Linux - Networking 2 03-24-2003 09:38 AM


All times are GMT -5. The time now is 10:30 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