Solved

how to prevent word wrap on command line in unix

Posted on 2011-03-18
8
1,034 Views
Last Modified: 2013-12-16
I would like to know the parameter that should go into .Xdefaults file that prevents word wrap on a command line on Linux Redhat.
0
Comment
Question by:monocacy570
8 Comments
 

Author Comment

by:monocacy570
ID: 35169939
would like to know the syntax that should go into .Xdefaults file that would prevents word wrap on a command line on Linux Redhat
0
 
LVL 9

Expert Comment

by:svs
ID: 35181151
This doesn't make sense.  "command line" is normally provided by shell (/bin/sh and the like), but shells are not configured via .Xdefaults.

More details, please?
0
 

Author Comment

by:monocacy570
ID: 35181986
svs, your point is noted and therefore the question should be asked like this:  how do I prevent word wrap from occuring at the 80 character limit on a command line?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 9

Expert Comment

by:svs
ID: 35182320
I've seen this happen, but do not recall in which shell and which OS.  sorry.
0
 
LVL 62

Expert Comment

by:gheist
ID: 35188016
.Xdefaults has no influence on word wrapping.

bash input is controlled by ~/.inputrc /etc/inputrc

i suspect wrapping at :80 happens because of a wrong TERM setting
0
 
LVL 4

Accepted Solution

by:
m_walker earned 250 total points
ID: 35188306
Are you talking about the terminal window under xwindows or from a remote terminal eg: putty.

The way I see it is you can change the line length with the stty command
eg:  stty cols 120
But, the terminal program may notice the line "needs" to be wrapped.  As such you would need to check the settings for the terminal app.

The terminal program must do something with the data, so it could just drop the exta data (trunc it) or store in a buffer and add a scroll bar.
0
 
LVL 19

Expert Comment

by:jools
ID: 35281662
have you tried not typing in anything bigger than 80 chars?
0
 

Author Closing Comment

by:monocacy570
ID: 35396711
Thanks to all who responded.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
change HISTFILE for root user on AIX 3 77
auto mounter on solaris 1 58
Skill Development 15 173
Writing a UNIX script menu allowing for multiple options. 5 52
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now