Visit Our UNIX and Linux User Community


stty erase r


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users stty erase r
# 1  
Old 11-24-2006
stty erase r

after hitting this command...on pressing r acts as a backspace character....

how to disable this function
# 2  
Old 11-24-2006
Better thing is you can quit the session. Hope this setting is not in your .profile. If so you have to login through some one else user id and then edit your .profile.
# 3  
Old 11-24-2006
Is .profile maintained as 666, I dont think so.

If its 644, how would you be able to edit it from some other id? Thats not possible !!!
# 4  
Old 11-25-2006
The exact same way you made "r" the backspace:
Code:
stty erase <key>

where key is the key you want to use as backspace.
# 5  
Old 11-27-2006
Matrixmadhan

Yeah i agree .profile is 644 but will a chmod 777 * will work and change .profile's permission i doubt it. Need to check.

Systemshock

Typing stty erase <key> will erase the letter 'r' so the shell will understand like stty ase. So this wont work
# 6  
Old 11-27-2006
Quote:
Matrixmadhan

Yeah i agree .profile is 644 but will a chmod 777 * will work and change .profile's permission i doubt it. Need to check.
No,
this wont work,
you cannot change the perm bits to 777 if you are not the owner or effective user.

Previous Thread | Next Thread
Test Your Knowledge in Computers #49
Difficulty: Easy
A USB hard drive is considered to be a primary storage device for personal computers.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

stty erase ^h not working for backspace

Hi , I have to press shift + Backspace to do backspace on my unix termminal everytime. How can i configure it to a normal backspace only. Please help me here. PFB the contents of the stty -a : dbtgr@hpxi017:/pocuser/C5/aimsys/dbtgr> stty -a speed 38400 baud; line = 0; rows = 35; columns =... (4 Replies)
Discussion started by: kunwar
4 Replies

2. AIX

Erase hard disk

Hi ... How to erase bootable hard disk in Pseries... (3 Replies)
Discussion started by: sumathi.k
3 Replies

3. UNIX for Dummies Questions & Answers

Erase an at job

Hello everybody i need to erase a at job that i write. I wrote at 22 at>execute a command at>Ctr + d How do i erase this? I don`t wan`t to do this. I need to change something when i pressed ctrl + d give a job number (2 Replies)
Discussion started by: enkei17
2 Replies

4. Shell Programming and Scripting

Problem in /bin/bash with stty erase

hello everybody, as many, I have a problem with a script... I wrote a shell script in which I want to read a variable value. the problem is that I can't use the arrow keys. Here is the script I use : #!/bin/bash stty erase ^H read foune echo "$foune" exit 0; the problem is... (2 Replies)
Discussion started by: Moumou
2 Replies

5. Solaris

stty erase on solaris 8 sparc

Hi All, I put all these combination either: stty erase ^H or stty erase "^H" on /etc/profile or /home/user/.profile. But backspace erase won't work on my keyboard. I'm using putty on my remote connection with ultra 10. On the console or direct connection with sun keyboard, it does. ... (3 Replies)
Discussion started by: itik
3 Replies

6. UNIX for Advanced & Expert Users

stty erase in a script

does anyone know how to incorporate this in a script so users can actually make use of their backspace button that they've grown accustomed to? stty erase ^H --- this isn't working the script. works on command line but i wanna invoke it whenever this program of mine is run so users can use... (2 Replies)
Discussion started by: Terrible
2 Replies

7. UNIX for Dummies Questions & Answers

erase file

I have a file that always generated in the system eg. /tmp/log.txt , it is generated by the application program , but this file should not be present in the system otherwise there are some program problem , I want to erase this file once the program has generate it , as I know , it can link to... (2 Replies)
Discussion started by: ust
2 Replies

8. UNIX for Dummies Questions & Answers

stty erase e command

I'm not familiar with the stty command. What would "stty erase e" do to my system and what kind of problems would it create? Also, how would I undo this command? (1 Reply)
Discussion started by: CEngel0327
1 Replies

9. Shell Programming and Scripting

Erase files and directory

I have a set of files created under different name, but they all have the same directory name at some point. I will like to delete all the files and directories after the common name: Here is an example: techs\fins\results\oaks\bigs tech2\gihs\results\gears\picks ... (3 Replies)
Discussion started by: odogbolu98
3 Replies

10. UNIX for Dummies Questions & Answers

Is there an unrecoverable erase command?

I am "retiring" an old unix box and need to erase all sensitive data so that it can not be recovered. Does anyone know a unix command for this? (5 Replies)
Discussion started by: snyderpa
5 Replies

Featured Tech Videos