- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Maddening: ls -l output messed up
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 10:25 AM
09-11-2009 10:25 AM
I've been unable to find a difference between the environment variables and stty settings from the machine that is doing this and any of my other HP-UX machines.
How do I fix this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 10:37 AM
09-11-2009 10:37 AM
Re: Maddening: ls -l output messed up
$ ls -l /usr/bin/ll
-r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/ll*
$ ls -l /usr/bin/ls
-r-xr-xr-x 7 bin bin 28672 May 5 2003 /usr/bin/ls*
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 10:41 AM
09-11-2009 10:41 AM
Re: Maddening: ls -l output messed up
$ ls -l ls
-r-xr-xr-x 7 bin bin 77852 Feb 15 2007 ls
$ ls -l ll
-r-xr-xr-x 7 bin bin 77852 Feb 15 2007 ll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 10:58 AM
09-11-2009 10:58 AM
Re: Maddening: ls -l output messed up
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:02 AM
09-11-2009 11:02 AM
Re: Maddening: ls -l output messed up
I've also messed with tabs, to no avail. It changes how far the cursor moves when I hit the tab key, but it doesn't affect the whitespace around the group column in ls output.
This is all under HP-UX 11.31, patched up to March '09, and using TERM set to xterm. The behavior exhibits in any terminal as well as the serial console. Root a normal users. I've even gone so far as to copy the /etc/profile from a properly working machine onto this one, with no change in behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:03 AM
09-11-2009 11:03 AM
Re: Maddening: ls -l output messed up
man ls indicates /usr/share/lib/terminfo/?/* as a dependency.
It may take formatting information from there.
What is TERM set to?
Try setting it to VT100 or HPTERM?
If you use
# ls -l > test.txt
and then
# cat test.txt
does that look alright?
does # od -c on that test.txt show any hard tabs? ( \t = 011 )
Does your terminal emulator have a 'scope' or 'do-not-interpret-controls' mode? Try it!
Try settings tab stops with 'tabs' every 8 columns?
just some things I would try.
fwiw,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:11 AM
09-11-2009 11:11 AM
Re: Maddening: ls -l output messed up
piping the output to a text file and catting the text file shows the same massive gaps around the group field. loaded in vi with list set to show hidden characters shows none, the whitespace is literally just a bunch of spaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:14 AM
09-11-2009 11:14 AM
Re: Maddening: ls -l output messed up
*
0250560 7 2 1 2 8 F e b 1 5
0250600 2 0 0 7 u n t i c \n - r -
0250620 x r - x r - x 2 b i n
0250640
*
I really don't know how to read that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:15 AM
09-11-2009 11:15 AM
Re: Maddening: ls -l output messed up
No hard tabs anywhere in the output. The whitespace is just that, spaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:15 AM
09-11-2009 11:15 AM
Re: Maddening: ls -l output messed up
That was a silly remark for a piped file.
But if you could log a telnet session...
how do other commands which show user/group behave?
For example:
# UNIX95= ps -o group,user,pid
# groups
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:18 AM
09-11-2009 11:18 AM
Re: Maddening: ls -l output messed up
$ UNIX95= ps -o group,user,pid
GROUP USER PID
users ascott 2293
users ascott 29308
The output of the groups command is normal:
$ groups
dba sys users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:19 AM
09-11-2009 11:19 AM
Re: Maddening: ls -l output messed up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:21 AM
09-11-2009 11:21 AM
Re: Maddening: ls -l output messed up
Specifically no \t for tabs as yo confirmed with vi.
The forum formatting dropped the spaces, so the character dump output is not too useful, but your description was. It suggests NOT to looks at terminal settings to me.
# od -b
would give us the exact bytes, with the space problem, but your description already convinced me that the spaces are there.
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:27 AM
09-11-2009 11:27 AM
Re: Maddening: ls -l output messed up
0272400 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040 067
0272420 066 065 064 070 040 106 145 142 040 061 065 040 040 062 060 060
0272440 067 040 172 143 141 164 012 055 162 055 170 162 055 170 162 055
0272460 170 040 040 040 061 040 142 151 156 040 040 040 040 040 040 040
0272500 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040
*
0272560 040 040 040 040 040 040 040 142 151 156 040 040 040 040 040 040
0272600 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040
*
0272660 040 040 040 040 040 040 040 040 040 040 040 040 067 071 071 040
0272700 106 145 142 040 061 065 040 040 062 060 060 067 040 172 143 155
0272720 160 012 055 162 055 170 162 055 170 162 055 170 040 040 040 061
0272740 040 142 151 156 040 040 040 040 040 040 040 040 040 040 040 040
0272760 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040
*
0273040 040 040 142 151 156 040 040 040 040 040 040 040 040 040 040 040
0273060 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040 040
*
0273140 040 040 040 040 040 040 040 067 071 060 040 106 145 142 04
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:32 AM
09-11-2009 11:32 AM
Re: Maddening: ls -l output messed up
All users are facing the same ?
If not then logout from the server and login again.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:36 AM
09-11-2009 11:36 AM
Re: Maddening: ls -l output messed up
And yes, the power cord is plugged in. ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 11:53 AM
09-11-2009 11:53 AM
SolutionI suspect that the following paper holds the key (but I have not finished reading it)
http://docs.hp.com/en/5992-4118/longusername_white_paper_updated.pdf
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 02:05 PM
09-11-2009 02:05 PM
Re: Maddening: ls -l output messed up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 02:08 PM
09-11-2009 02:08 PM
Re: Maddening: ls -l output messed up
lugadmin -d 8
That fixed it. Apparently whenever I enabled long user/group names, the default display length got set to something absurd. Odd I didn't see this kind of behavior on any other machines, as I've enabled long user/group names on everything I have.
Thanks for the point in the right direction!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2009 01:55 AM
09-12-2009 01:55 AM
Re: Maddening: ls -l output messed up
(You might want to use xd(1) and get it in hex. 0x20 for space)