| |
| |
Linux ls Command Tutorial with Examples of Options - Run the Linux ls Command with Hands-On Exercises
 |
| |
Linux Training Online Articles Summary: Linux ls Command Tutorial - Examples of Options - Type in & Run
the Linux ls Command - with Hands-On Exercises.
Read below to learn how to run the Linux ls command today!
|
|
 |
Running the Linux ls Command - including Examples of Running the Linux ls Command with Options & The Linux ls Command Description
The Linux ls command shows (lists) the files and folders in a directory and there are lots of options of the ls command - and you're going to see just a few here.
The "ls" in the ls command stands for "list", as in "list files and folders".
Running the Linux ls Command using Examples showing Some Linux ls Command Options
Type in the Linux commands at the right of the Linux "command line prompt" (the $ symbol) shown below. Your system may show a different prompt, such as a # (pound or number symbol) - or a > (greater than) symbol.
Don't type in the $ (dollar sign) when you run the Linux command examples below. The $ sign is just used to show you that you are typing in a command at the Linux command line prompt.
Be sure to press the Enter key after typing in the Linux commands below. The Linux commands are shown at the right of the Linux command prompt - shown as the $ (dollar sign). Your system may show a # (pound or dollar sign) or another symbol as the Linux prompt.
Running the Linux ls Command - Linux ls Command Examples
The first example below at the Linux "command line prompt" simply shows typing in ls to run the ls (list) command. This runs the ls command without any options.
Remember: Don't type in the $ prompt (a.k.a. Linux command line prompt) shown below when you run the ls command below.
Also, Linux commands are "case sensitive". Always type lower case letters when they are shown and upper case letters when they are shown. For example, in the command below, don't type LS (with upper case letters), type in ls (with lower case letters).
$ ls
Running the Linux ls command above shows the contents of the current directory. The output you see on the screen after typing in the command is a listing of the files and folders in the current directory, shown one after the other, without any detail.
You can use options of the ls command to see more detail, such as using the -l (for long) option.
Now run the ls command with the "-l" option (without the quotation marks). This runs the ls command with the "dash el" option. (Be sure to use an "l" (el) and not the number 1 when you run the Linux command below).
The "l" (pronounced "el") option stands for "long", as in "list long" at the Linux command line prompt shown below.
$ ls -l
Notice the difference between the first version of the Linux ls command that you ran and the version of this command immediately above - the one with the -l option.
The -l option of the Linux ls command shows a long listing, which shows more detail than the previous command (the version without any options).
In the "list" you see on the screen (a.k.a. Linux screen output), the file and folder names are at the far right and lots of detail for each file and folder is shown at the left of each file and folder; such as the size, date and time of the file or folder.
The /home (slash home) shown in the next Linux command example causes the ls command to list the contents of the folder named "home".
$ ls -l /home
The Linux command output shows the files and folders that are in the directory named home, which is below the root directory, which is represented by the / (slash).
 |
| |
Linux Command Examples Training Tips: Learning Linux with the "Linux Admin & Commands Training Videos" CD is easy. You can watch every step of Linux command examples as they are carefully described in detail. |
|
 |
In the "Linux Admin & Commands Training Videos" the Linux ls command is shown with lots more examples than shown above.
|
|
 |
| |
And now I would like to offer you free access to my Linux Commands Training - 7 Step Mini-Course, a 7 Lesson daily mini-course,
including the Linux Commands ebook and Linux audio podcasts - showing you how to get started learning how to use Linux commands.
You can get your instant access at:
http://www.LinuxCommandsTrainingCourse.com
From Clyde Boom
The Easy Linux Training Guy
Easy, self-paced Linux training - In Plain English!
|
|
 |
| |
 |
|
BONUS: With every CD order - you automatically get 30 Days of immediate access (24 x 7) to Online Viewing - so you can Log In and watch your Linux Videos - Online - right away - until your CD arrives. Yes! - It's Easy! |
|
 |
|
 |
| Lancom Technologies |
 |
| Easy, self-paced Linux Training - in Plain English! |
 |
| Web Site: www.LinuxTrainingOnlineArticles.com | Email: ClydeBoom@iLearnLinux.com |
 |
| 150 South Eighth Street, P.O. Box 1438, Lewiston, NY 14092-8438 USA |
 |
| 5468 Dundas Street West, P.O. Box 807, Toronto, Ontario M9B 6E3 Canada |
 |
| Toll Free: 1-800-718-7318 | Outside North America: +1-905-857-7177 |
 |
Copyright © 2008 Lancom Technologies. All rights reserved. |
 |
|
|
|
The Easy Linux
|
 |
|
Training Guy!
|
|
(large triangle arrow below)
|
(Press F5 to Refresh
if necessary.)
|
|
|
|