LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   In CLI for HP-UX box I get LF and CR on either sides. (https://www.linuxquestions.org/questions/linux-newbie-8/in-cli-for-hp-ux-box-i-get-lf-and-cr-on-either-sides-4175444838/)

Mrudhul 01-09-2013 10:54 AM

In CLI for HP-UX box I get LF and CR on either sides.
 
Hi,

I am completely new to HP-UX and was tring to open /usr/lbin/modprpw using cat by mistake.
From the next step in CLI it show LF(on left) and CR(on right) on either sides of "#->".
Whatever prss from then comes with LF-CR on either sides.
Can someone help me to get back to normal mode and also let me know what could be the issue.

Thanks in advance.

chrism01 01-10-2013 01:33 AM

Basically, you've tried to use a cmd designed for text files on a binary; it's not going to work and may (in your case DID) screw up your terminal settings.
Easiest thing is to logout of the terminal session and log back in.

Not sure if HP-UX has it, but there is a cmd called 'file', that will tell you about a file's format
eg
Code:

file screen.txt
screen.txt: ASCII text

file CentOS-6.3-x86_64-bin-DVD1.iso
CentOS-6.3-x86_64-bin-DVD1.iso: ISO 9660 CD-ROM filesystem data 'CentOS_6.3_Final              ' (bootable)



All times are GMT -5. The time now is 07:46 AM.