Linux commands – Ls command

Linux commands - Ls command

List the files in the current directory.

ls -al
List all (-a) the files in the current directory in long (-l) format.

ls *.pdf
List files in the current directory that end with .pdf. The * is a wild-card character that represents any number of characters. The ? is a wild-card character that represents a single character.

ls /home/user
List the files in the directory /home/user.

http://linuxxcommand.blogspot.com/2013/12/linux-commands-ls-command.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s