LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How can i get the ls command to output in the following format (https://www.linuxquestions.org/questions/programming-9/how-can-i-get-the-ls-command-to-output-in-the-following-format-683839/)

deathalele 11-16-2008 01:06 PM

How can i get the ls command to output in the following format
 
I want the ls -l command to give me the following output

Quote:

drwxr-xr-x 7 iwan users 4096 2008-11-15 10:31 ~/home/me/directory/file.ext
With all colum lengths the same

Is it possible to this with this command or another similar one

Thanks in advance

Sergei Steshenko 11-16-2008 01:10 PM

Quote:

Originally Posted by deathalele (Post 3343922)
I want the ls -l command to give me the following output


With all colum lengths the same

Is it possible to this with this command or another similar one

Thanks in advance

And what is wrong with present 'ls -l' output ? The fact that you do not have the '~/home/me/directory' part ?

And what is the meaning of '~' that you propose ?

deathalele 11-16-2008 01:51 PM

When i do ls -l

The collums are often different lengths
and with the ~/ho... i started off wrtitng ~/ instead ~/home/. just a small typo

Sergei Steshenko 11-16-2008 02:07 PM

Quote:

Originally Posted by deathalele (Post 3343968)
When i do ls -l

The collums are often different lengths
and with the ~/ho... i started off wrtitng ~/ instead ~/home/. just a small typo

From 'man ls':

Quote:

-T, --tabsize=COLS
assume tab stops at each COLS instead of 8
- this might your column width problem.


All times are GMT -5. The time now is 12:33 AM.