Automatic alias's


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Automatic alias's
# 1  
Old 08-28-2003
Question Automatic alias's

Hi all

Im just wondering something, i constantly have to use 2 commands at work, i know how to alias them out to short commands so i dont have to type (or scroll back to my last)

~support/bin/bearertool -sc <name>

the problem is i connect as a user and not as root through multiple F-secure SSH client session.

Each time i open a new session i lose the alias be='~xxxx' commands and either have to input new ones or copy and paste the commands into the new window from a word document i have open.

the new session drops me to a pwd of /home/ml is there anyway to have it so that each time i log into a new session it will run the alias commands for me?

i cant connect as root to make them permanant so it has to be something i can run from my home directory or that will auto run.

Thanks in advance

The Ripster
# 2  
Old 08-29-2003
I don't really know exactly what you're trying to do. But shells have startup scripts that run at login time. Which script depends on which shell. It sounds like you might just need to add the alias lines to the appropriate startup script. If you don't know what that is, tell what shell and what system you are using.
# 3  
Old 08-31-2003
usually, .profile is standard.
# 4  
Old 09-01-2003
Hi,

Please look at the standard shell you use for logging in :

grep `whoami` /etc/passwd | awk -F: '{print $7}'

the /bin/ksh and /bin/sh use ~/.profile
the /bin/csh use ~/.login

the command "cd" without any parameters always help you to go to your homedir as wel.
If it should be set for each user, just use the file /etc/profile

Regs David
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Automatic logout

Hello, I have this issue on a new server I just built. It is a RHEL 6.7 build. I use VNC to connect to the server from my windows machine. When I login to the Server in morning using VNC I get this error: "Automatic logout, this session is configured to log out after a period of inactivity. I... (0 Replies)
Discussion started by: bitlord
0 Replies

2. UNIX for Dummies Questions & Answers

Create alias files (not alias commands)

If one: $ find -name 'some expression' -type f > newfile and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory. I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies

3. Slackware

Automatic login without X

I know how to set up KDM or GDM to do automatic login, but is there a way to do it without GDM or KDM or X at all so when I start the machine I am immediately taken to a waiting command prompt? Thanks (5 Replies)
Discussion started by: raidzero
5 Replies

4. IP Networking

automatic ip assignment

hello guyz, I am working on project of automatic ip adress assignment to a local network when I send a packet with Mac adress I want to get a reply from the other machine with its ip address ,so how can I achieve that? (2 Replies)
Discussion started by: netsavy
2 Replies

5. UNIX for Dummies Questions & Answers

Automatic Kill -help

Hello We are using UNIX, (?) there were reports to us thAt their login was automatically killed, however we (root) did not issue a kill -9 PID, can anyone give me an idea what happen. To add, the user is not idled, he is actually doing something. also, i search all the thread, donno if i... (5 Replies)
Discussion started by: lancemendioro
5 Replies

6. UNIX for Dummies Questions & Answers

Why not automatic bootup

Evry time I start up my mavhine ,have to type in unix at Boot : Is there a way unix should bootup automatically? Asif (2 Replies)
Discussion started by: asif iqbal
2 Replies

7. UNIX for Advanced & Expert Users

Automatic PowerOff!!

Hi Guys, I faced a problem in one of our workstations, from five days ago when i come to office i see that this system has been powred off & when i start it up again it goes trough the "System Setup Restoring " & seems that automatic power off is active . For disabling this i went to... (2 Replies)
Discussion started by: nikk
2 Replies

8. UNIX for Advanced & Expert Users

Automatic boot up

Hi everyone, I was wondering if anyone out there knows how I can make my UNIX server (Using Solaris8) boot up to a prompt without needing me to login. I simply want to turn on my UNIX box and get to a prompt without needing to input login and password. Many thanks, Sid (1 Reply)
Discussion started by: snili
1 Replies

9. Shell Programming and Scripting

automatic su

Hi all, Suppose I have a script under user A, which calls a script under user B (this script should be run using user B). How can I change the user (along with supplying the password) automatically in the script (a command similar to su)? Thank you in advance Best Regards (1 Reply)
Discussion started by: omran
1 Replies
Login or Register to Ask a Question