ls -l information?

Code junkies hangout here

Moderators: ChriThor, LXF moderators

ls -l information?

Postby debut » Wed Nov 09, 2005 7:57 pm


As a newbie:

I know that ls -l list files in a directory.Can i get a Bash script
that prints the same information as ls -l but ib a user friendly way?

Thank you.
Posts: 3
Joined: Tue Nov 08, 2005 6:33 pm

RE: ls -l information?

Postby Nigel » Wed Nov 09, 2005 9:33 pm

What do you mean by "user friendly" ?
What do you need to see ?
Check out the man pages for ls and see if any of the options do what you want.
LXF regular
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

RE: ls -l information?

Postby Lejon » Thu Nov 10, 2005 3:56 pm

try: alias ll="ls -lh"
and then type: ll
I am the one you thought I was! Just not the way, you expected...
LXF regular
Posts: 150
Joined: Wed Oct 19, 2005 7:24 pm
Location: Sweden

RE: ls -l information?

Postby linuxgirlie » Thu Nov 10, 2005 4:48 pm

Or do you mean a graphical front end? An nice bash one is Xdialog, we use that with Karoshi...
My knowledge comes with no warranty...........

Server operating system designed for schools:
LXF regular
Posts: 787
Joined: Sat Apr 09, 2005 6:34 pm
Location: Kent...UK

RE: ls -l information?

Postby ollie » Sun Nov 13, 2005 7:06 am

Also try "ls -la --color=always" this will colour code the results. Try "ls --help" for all the options.

Note: There are 2 dashes - with no gap in front of help and color, also note the "American" spelling of colour.
Posts: 2749
Joined: Mon Jul 25, 2005 11:26 am
Location: Bathurst NSW Australia

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests