Sponsored Content
Operating Systems Linux Red Hat RHEL 7: Backup Space and Delete is not working in console Post 302947826 by Don Cragun on Monday 22nd of June 2015 09:26:25 PM
Old 06-22-2015
On most UNIX systems, the default erase character (the character you use to delete the previous character typed) and kill character (the character you use to delete everything you have typed so far on the current input line) are # and @, respectively. I don't know what they are on various Red Hat releases. Your normal login scripts probably set the erase and kill characters you're used to while running in a terminal session.

Try changing /etc/init.d/firstboot to:
Code:
stty erase '<erase character>' kill '<kill character>'
printf "Enter IP:"
read IP

where <erase character> is the literal erase character you want to use and <kill character> is the literal kill character you want to use. If you're editing the file using vi, you can enter those characters by using the sequence <ctl-v><erase character> and <ctl-v><kill character> where <ctl-v> is the character you get by pressing and releasing the v key while holding down the control key (usually labeled CNTL, CTL, or CONTROL depending on your keyboard manufacturer.
This User Gave Thanks to Don Cragun For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

console -f not working in ALOM

Hi, I connected to ALOM on V240 installed with Solaris 10. console -f does not give me console on screen. Sun(tm) Advanced Lights Out Manager 1.6.8 sc> console -f Enter #. to return to ALOM. ...I pressed ENTER a lot of times but does not give me console. Another observation in this... (5 Replies)
Discussion started by: upengan78
5 Replies

2. Red Hat

RHEL 5 supports only 2 TB space for a partition !

Dear Friends , I am using Redhat Ent Linux 5.0 with a EMC storage which HDD space is 4 TB. After Installing RHEL 5 , I get 4 TB space available but when I am going to create a partition then the OS show 2TB available space . I cannot create a partition above 2TB space . Is there any limitation... (3 Replies)
Discussion started by: shipon_97
3 Replies

3. Shell Programming and Scripting

RHEL - Shell Script not working

Hello Unix Mates I have a problem my script is not working, can anyone tell what is rung with it? #!/bin/sh wget "http://download.divx.com/labs/divx611-20060201-gcc4.0.1.tar.gz" tar zxf divx611-20060201-gcc4.0.1.tar.gz ./divx611-20060201-gcc4.0.1/install.shError: -2010-11-28 21:25:06-- ... (1 Reply)
Discussion started by: camper
1 Replies

4. Red Hat

Graphical console for RHEL 5 server

hi , i installed RHEL 5 server in one machine . i am able to login through putty . But not through Exceed . i mean to say i want a graphical user interface through exceed . some other machine i am able to log in through exceed . is there any configuration is there for that one . did i miss... (3 Replies)
Discussion started by: rateeshkumar
3 Replies

5. Red Hat

How to find un-partitioned space in a RHEL server?

I wanted to know how to find un-partitioned space in a Red Hat Linux server. I tried using fdisk but does not seem to be a user friendly output. I hope, my question is clear. Please revert with the reply to my query. Regards (1 Reply)
Discussion started by: RHCE
1 Replies

6. Red Hat

Is it possible to extend a extended partition raw space in harddisk thru rhel 6

hi all, As going thru LVM concepts in rhel 6, got hit with a question about "how to use the raw partition of an harddisk which extended volume is taken a bit" please find the attached diagram... is it possible to use this raw space with previously created extended partition without data... (13 Replies)
Discussion started by: redhatlbug
13 Replies

7. Linux

RHEL 6.3 - chage command not redirecting the output to console.

When i am issuing chage command, it reporting the output properly. But when i redirect the output, i am not getting the output in the mentioned path. chage -l root >> /tmp/chage.txt. I need to use this into the script to capture the data. I think its seems to be bug with RHEL 6.3. Same... (3 Replies)
Discussion started by: Srini.rk1983
3 Replies

8. Red Hat

How to Backup the Virtual Machine In RHEL 6.2?

Hi all , I'm using RHEL 6.2 , Installed centos and ubuntu in virtual machine , I have installed those virtual machines in a partitions such as /dev/sda5 Centos 6.2 installed in /dev/sda5 ubuntu 12.04 installed in /dev/sda6 how can i backup it and restore in any condition while if... (2 Replies)
Discussion started by: babinlonston
2 Replies

9. Red Hat

Unable to detect HP backup tapes in RHEL 6.2

Hi All, We connected 2 new tape drives to the servers. I am not able to see both HP tape drives in OS level. I am using RHEL 6.2 OS. I have scanned and rebooted the server but still can't able to find the drives. Thanks in advance..!!!! ---------- Post updated 10-22-13 at 05:07 PM... (1 Reply)
Discussion started by: Navkreddy
1 Replies

10. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
STTY(1) 						      General Commands Manual							   STTY(1)

NAME
stty - set terminal options SYNOPSIS
stty [-a | -e] [-f file] [operands] DESCRIPTION
Stty sets certain I/O options on the current output terminal, placing its output on the diagnostic output. With no argument, it reports the speed of the terminal and the settings of the options which are different from their defaults. The following options are available: -a Display everything stty knows. This has the same effect as using the operand all or everything. The distinction between all and everything has been removed. -e Same a -a above. -f Open and use the terminal named by file rather than using standard output. The file is opened using the O_NONBLOCK flag of open(), making it possible to set or display settings on a terminal that might otherwise block on the open. The following operands are special: all Everything stty knows about is printed. everything Same as all above. flushout Flush the queues for the device. This is most useful when an exiting process is stuck waiting for terminal output to drain. speed The terminal speed alone is printed on the standard output. size The terminal (window) sizes are printed on the standard output, first rows and then columns. Operands are selected from the following: even allow even parity input -even disallow even parity input odd allow odd parity input -odd disallow odd parity input raw raw mode input (no input processing (erase, kill, interrupt, ...); parity bit passed back) -raw negate raw mode cooked same as `-raw' cbreak make each character available to read(2) as received; no erase and kill processing, but all other processing (interrupt, suspend, ...) is performed -cbreak make characters available to read only when newline is received -nl allow carriage return for new-line, and output CR-LF for carriage return or new-line nl accept only new-line to end lines echo echo back every character typed -echo do not echo characters tandem enable inbound software (xon/xoff) flow control, so that the system sends out the stop character when its internal queue is in danger of overflowing on input, and sends the start character when it is ready to accept further input -tandem disable inbound software (xon/xoff) flow control -tabs replace tabs by spaces when printing tabs preserve tabs For the following commands which take a character argument c, you may also specify c as ``undef'', to set the value to be undefined. A value of ``^x'', a 2 character sequence, is also interpreted as a control character, with ``^?'' representing delete. erase c set erase character to c (default `#', but often reset to ^H.) kill c set kill character to c (default `@', but often reset to ^U.) intr c set interrupt character to c (default DEL or ^? (delete), but often reset to ^C.) quit c set quit character to c (default control .) start c set start character to c (default control Q.) stop c set stop character to c (default control S.) eof c set end of file character to c (default control D.) brk c set break character to c (default undefined.) This character is an additional character causing wakeup. dec set all modes suitable for Digital Equipment Corp. operating systems users; (erase, kill, and interrupt characters to ^?, ^U, and ^C, decctlq and ``newcrt''.) 0 hang up phone line immediately 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 exta extb Set terminal baud rate to the number given, if possible. (These are the speeds supported by the DH-11 interface). rows n The terminal size is recorded as having n rows. columns n The terminal size is recorded as having n columns. cols n is an alias for columns. A teletype driver which supports the job control processing of csh(1) and more functionality than the basic driver is fully described in tty(4). The following options apply only to it. new Use new driver (switching flushes typeahead). crt Set options for a CRT (crtbs, ctlecho and, if >= 1200 baud, crterase and crtkill.) crtbs Echo backspaces on erase characters. prterase For printing terminal echo erased characters backwards within ``'' and ``/''. crterase Wipe out erased characters with ``backspace-space-backspace.'' -crterase Leave erased characters visible; just backspace. crtkill Wipe out input on like kill ala crterase. -crtkill Just echo line kill character and a newline on line kill. ctlecho Echo control characters as ``^x'' (and delete as ``^?''.) Print two backspaces following the EOT character (control D). -ctlecho Control characters echo as themselves; in cooked mode EOT (control-D) is not echoed. decctlq After output is suspended (normally by ^S), only a start character (normally ^Q) will restart it. This is compatible with DEC's vendor supplied systems. -decctlq After output is suspended, any character typed will restart it; the start character will restart output without providing any input. (This is the default.) tostop Background jobs stop if they attempt terminal output. -tostop Output from background jobs to the terminal is allowed. flusho Output is being discarded usually because user hit control O (internal state bit). -flusho Output is not being discarded. pendin Input is pending after a switch from cbreak to cooked and will be re-input when a read becomes pending or more input arrives (internal state bit). -pendin Input is not pending. pass8 Passes all 8 bits through on input, in any mode. -pass8 Strips the 0200 bit on input except in raw mode. mdmbuf Start/stop output on carrier transitions (not implemented). -mdmbuf Return error if write attempted after carrier drops. litout Send output characters without any processing. -litout Do normal output processing, inserting delays, etc. nohang Don't send hangup signal if carrier drops. -nohang Send hangup signal to control process group when carrier drops. The following special characters are applicable only to the new teletype driver and are not normally changed. susp c set suspend process character to c (default control Z). dsusp c set delayed suspend process character to c (default control Y). rprnt c set reprint line character to c (default control R). flush c set flush output character to c (default control O). werase c set word erase character to c (default control W). lnext c set literal next character to c (default control V). Modem Control Status: These display the current state of modem control. They are only displayed for actual tty lines and not for pseudo tty lines (more pre- cisely, it is only displayed for lines which support the TIOCMGET ioctl. See tty(4). While it is possible to change the state of the modem control lines, the hardware or other software may prevent the change from actually taking place, or may cause the state to immediately revert to the original state. dcd (-dcd) State of Data Carrier Detect. dsr (-dsr) State of Data Set Ready. dtr (-dtr) State of Data Terminal Ready. cts (-cts) State of Clear To Send. rts (-rts) State of Request To Send. SEE ALSO
ioctl(2), tabs(1), tset(1), tty(4) 4th Berkeley Distribution March 27, 1997 STTY(1)
All times are GMT -4. The time now is 04:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy