Solved

how to prevent word wrap on command line in unix

Posted on 2011-03-18
8
1,021 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 61

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.

708 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

16 Experts available now in Live!

Get 1:1 Help Now