Meaning of command ls -la


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Meaning of command ls -la
# 1  
Old 02-02-2012
Meaning of command ls -la

Hello everyone,
I just began studying solaris 10. I have tried searching for the meaning of this command (ls -la ). Can anyone please explain to me what the command

ls -la

does?
example ls -la /etc

Thank you
# 2  
Old 02-02-2012
The -a flag means to show all files, including those starting with a full stop, e.g. .profile which many version of ls exclude. This makes them sort of hidden.

Read the man page for more information.


I hope that this helps

Robin
Liverpool/Blackburn
UK
# 3  
Old 02-02-2012
When logged into the computer, take a look at the online manual.
Code:
man ls

In this case the default action of just typing ls on its own has been modified by adding two switches "-l" and "-a". This can be specified as:
Code:
ls -l -a
# Or in short
ls -la

# 4  
Old 02-02-2012
Quote:
Originally Posted by methyl
When logged into the computer, take a look at the online manual.
Code:
man ls

In this case the default action of just typing ls on its own has been modified by adding two switches "-l" and "-a". This can be specified as:
Code:
ls -l -a
# Or in short
ls -la

Thanks Methyl for the explanation. Now understand that its two switches combined as one. However, I do not understand the -l option and what it is supposed to do. I checked the man ls but could not find the ls -l . Can you explain what the ls -l does?

Thanks again
# 5  
Old 02-02-2012
Time to learn how to find things in "man".
Sometimes you just have to trawl from the top down, but there are some tricks. The "man" pages are presented to you by a "pager" program which is often the "more" command or something like it. These "pager" programs contain basic search facilities.
So, to find -l in man ls I typed /-l a couple of times until I found what I wanted to read.
You'll also note that the command switches are in alphabetic order in the manual.
# 6  
Old 02-02-2012
Quote:
Originally Posted by methyl
Time to learn how to find things in "man".
Sometimes you just have to trawl from the top down, but there are some tricks. The "man" pages are presented to you by a "pager" program which is often the "more" command or something like it. These "pager" programs contain basic search facilities.
So, to find -l in man ls I typed /-l a couple of times until I found what I wanted to read.
You'll also note that the command switches are in alphabetic order in the manual.
Thanks boss. Lots
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Compile command meaning?

cc -Wall -c ctest1.c ctest2.c whats meaning of -(hyphen before c and wall) (1 Reply)
Discussion started by: mahor1989
1 Replies

2. UNIX for Dummies Questions & Answers

meaning of swap -s command

Hi, Please explain about the command and its output swap -s in a very detailed manner (3 Replies)
Discussion started by: Ajoy
3 Replies

3. Shell Programming and Scripting

Meaning of "b" modifier in "sort" command

I need to sort the following file by the rhdiskpower devices in the last column: Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path 1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
Discussion started by: wjssj
3 Replies

4. Shell Programming and Scripting

^$$ meaning

Hi , Can anyone please let me know whta the follwoing piece of code for ScriptName=${0##*/} if pgrep -f "$ScriptName" | grep -v "^$$\$" ; then echo `date`": Sctipt $ScritName is already runnig" exit fi Thnx a lot in advance Please use code tags when posting data and code... (8 Replies)
Discussion started by: Pratik4891
8 Replies

5. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

6. UNIX for Dummies Questions & Answers

passwd command what is the meaning

Hello to everybody i have question i do the passwd -s -a commando and what to knos what is the meaning of the second row. PS NL LK to the side is the date of expiraton and then a 7 a 90 what is the meaning of all that? tHANK YOU FOR YOUR TIME. (1 Reply)
Discussion started by: enkei17
1 Replies

7. AIX

What's meaning of "POWER" in diag command.?

I ran 'diag' command to verify disk follow the below steps. DIAG------?task selection-------ssa service aid-----Link verification I found that there are 3 types of status. (Good, Failed and Power). scp2: pdisk23 D69E584F 0 16 Power scp2: pdisk19 D657E7A9 1 15 Power scp2: pdisk28... (1 Reply)
Discussion started by: pattarapongn
1 Replies

8. Shell Programming and Scripting

sed command meaning

Thanks guys for helping me out (2 Replies)
Discussion started by: chris1234
2 Replies

9. Shell Programming and Scripting

Command meaning

I know tr stands for table if i am not wrong but what does this whole command means can anyone give an idea ? | tr ' ' '\n' | sed -e "s/.*=\"\(.*\)\".*/\1/g (2 Replies)
Discussion started by: chris1234
2 Replies

10. UNIX for Advanced & Expert Users

Command meaning.

what does it mean set linesize 200; set linesize 2000; i am spooling the data into a file .When i give 200 the size of file is 72MB. When i give 2000 its 720 MB.How do i know if i am getting all the data.......? (2 Replies)
Discussion started by: praveen.pinto
2 Replies
Login or Register to Ask a Question