Bind keys using unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Bind keys using unix
# 29  
Old 09-21-2011
I thought default shell in SOLARIS 10 was ksh...
# 30  
Old 09-21-2011
I'm using csh apparently...i know I can access ksh with that method you mentioned.
# 31  
Old 09-21-2011
Quote:
Originally Posted by bucksnotts
Is there a way that I can get unix to remember these aliases? When I log out, it seems to delete them.
As explained before, you have to add them to your ~/.profile file.

A quick and easy way to append things to your ~/.profile is:

Code:
% cp ~/.profile ~/.profile-bak
% cat >>~/.profile
alias a "programa"
alias b "programb"
^D
%

...where, for ^D, you literally need to type control-D. The ^ has nothing to do with shift-6. This will tell cat to stop reading from keyboard and finish writing to ~/.profile.

If you make a typo too late to backspace and fix, cp ~/.profile-bak ~/.profile to put things back the way they were.

You can also edit it with vi ~/.profile though vi, being designed 35 years ago for a totally alien keyboard, is a bit hard to master. Here's a vi cheat sheet if you're curious.

Last edited by Corona688; 09-21-2011 at 01:22 PM..
# 32  
Old 09-22-2011
I typed it and what I got back was

cp: cannot access /staff/scb/.profile

I assume that's my company restricting access. Is there another way to do it, or is that the only way?
# 33  
Old 09-22-2011
The mount point and directory is not what you usually see on solaris (/export/home...). Can you just type:
Code:
id
pwd

If you are in your home directory type also:
Code:
ls -al | more

The environment files are at the beginning... with more it will display per screen, you will have to press Enter to continue or q to quit...
# 34  
Old 09-22-2011
Quote:
Originally Posted by bucksnotts
I typed it and what I got back was

cp: cannot access /staff/scb/.profile
Then you don't have a .profile yet. Ignore it and do the rest.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Bind

Hi All I need to do bind of exiting filesystem to new storage allocated mount --bind /prod/OpenCSS /var/lib/test echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab will this command just work ? (2 Replies)
Discussion started by: anil529
2 Replies

2. UNIX for Dummies Questions & Answers

Can't bind to IP

When you get the message can't bind to ip already in use. is there a command to search to see everything that is using that IP? I've already check the host and hostname files (2 Replies)
Discussion started by: mchelle_99
2 Replies

3. UNIX for Dummies Questions & Answers

SFTP - UNIX to Windows without keys

When I try to SFTP from our UNIX box to an outside vendor using passwords - no keys, I am immediately get disconnected. We have the FIREWALL open because I get prompted for the password. Here's the error: sftp userid@sftp.test.com Connecting to sftp.test.com... userid@sftp.test.com's... (5 Replies)
Discussion started by: blt123
5 Replies

4. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

5. Shell Programming and Scripting

sftp from unix to windows using keys

I'm working on setting up an automated script on a unix server to secure ftp (get) a file from a remote host which is a windows server with Vshell . I understand in order for the paswword-less authentication to work , I need to copy the authorization keys of our server(Solaris) to the remote host... (1 Reply)
Discussion started by: thrashers
1 Replies

6. UNIX for Dummies Questions & Answers

How do I set the public keys up correctly for a migration from an HP-UNIX server to I

I am getting the error message "Permission denied (publickey). lost connection" when I attempt to do an scp migration. I know how to generate the public keys in both IIS and UNIX, and I believe they are both suppose to have the same public key - but where are they each suppose to be stored (I... (1 Reply)
Discussion started by: whs2k
1 Replies

7. UNIX for Dummies Questions & Answers

how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS

how do I make my arrow keys behave like they are on DOS. ALSO i need editing on command promt like it is on DOS on my UNIX prompt can anyone help pl.. (11 Replies)
Discussion started by: spotnis
11 Replies

8. UNIX for Dummies Questions & Answers

Adding MS 2000 FSMO Roles to Unix Bind

In a Windows 2000 active directory environment (using Unix DNS), is it possible to create entries in Unix Bind to point Microsoft Workstations to specific Microsoft servers, depending on their Microsoft FSMO roles (i.e. Domain Naming Master, PDC Emulator, RID, Infrastructure Master)? In other... (0 Replies)
Discussion started by: breffkin
0 Replies

9. UNIX for Dummies Questions & Answers

arrow keys / special keys

how to use the arrow keys in shell scripting. is there any special synatax / command for this. i just want to use the arrow keys for navigation. replies appreciated raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies
Login or Register to Ask a Question