ls command


The ls command is useful for show a list of the files and folders you have in your current directory.

We use the ls command to view the content of a folder, for example:

As you can see from this example, I am in the music folder and i have executed an 'ls' command, this then lists all that I have in the music folder. simple!

there are quite a few variants of the 'ls' command which give a little bit more information. Personally I tend to the the 'ls -la' command which will give me dates and permissions.

ls -la
-la = this uses a long listing format and shows me all the information it has on the content:

I hope this helps and gives a good understanding of the command. Any Questions, do not hesitate to ask!

No comments:

Post a Comment