Operating System - HP-UX
1830899 Members
2514 Online
110017 Solutions
New Discussion

Problems executing Ctrl C when not logged in as root

 
SOLVED
Go to solution
Ginny Merlino
Advisor

Problems executing Ctrl C when not logged in as root

Attached is the profile file which I found in the /etc directory. If we are logged in with our individual user names, we can't use ctrl C to exit, for example, the find command.

If we log in as root, the ctrl C works.

Would anyone be able to tell me what I have to change so that ctrl C would work for any user?

Thanks! Ginny
8 REPLIES 8
Charles McCary
Valued Contributor
Solution

Re: Problems executing Ctrl C when not logged in as root

stty intr Ctrl-C
Charles McCary
Valued Contributor

Re: Problems executing Ctrl C when not logged in as root

Ginny,

sorry - you can add the above to your .profile - here's how it looks in mine:
stty erase "^H" kill "^U" intr "^C" eof "^D"
Ginny Merlino
Advisor

Re: Problems executing Ctrl C when not logged in as root

Hi Charles,

Do I put this in the profile script?

Thks!
Ginny
Charles McCary
Valued Contributor

Re: Problems executing Ctrl C when not logged in as root

one more thing the ^C is actually a cntl-c not a carat and a C.
Ginny Merlino
Advisor

Re: Problems executing Ctrl C when not logged in as root

Hi Charles,

Is there any where that I can put this so that it will be automatically placed in the .profile when I create a new user?

Thks!
Ginny
Charles McCary
Valued Contributor

Re: Problems executing Ctrl C when not logged in as root

I think our replies crossed, but yes you can add that line (with just the intr "^C" if that's all you want) to your .profile
Francois Bariselle_3
Regular Advisor

Re: Problems executing Ctrl C when not logged in as root

Add this line in .profile for all user template and all existing users:

stty erase "^H" kill "^U" intr "^C" eof "^D"

Frank.
Fais la ...
Charles McCary
Valued Contributor

Re: Problems executing Ctrl C when not logged in as root

Yes - the /etc/profile

Also, see man on profile.

tx,

Charlie