Skip to content
Facebook-f Twitter Linkedin-in Youtube Rss
  • 1.646.775.2855
  • 91. 93536 44646
  • VPS control
  • Client Area
Medha Hosting Logo
  • HOME
  • SERVERS
    • DEDICATED SERVERS
    • VPS SERVERS
    • COLOCATION SERVICES
    • Email & Security
      • Email And Collaboration
        • Microsoft Office 365 – India
        • Microsoft Office 365 – US & Canada
        • Google G Suite – US & Canada
        • Google G Suite – India
      • SSL Certificates
  • SERVER MANAGEMENT
    • MICROSOFT SERVER SUPPORT
      • EXCHANGE SERVER SUPPORT
      • WINDOWS SERVER SUPPORT
      • MS SQL SERVER SUPPORT
      • MS IIS SERVER SUPPORT
      • MS SHAREPOINT SERVER SUPPORT
    • LINUX SERVER SUPPORT
      • CPANEL SERVER SUPPORT
      • DIRECTADMIN SERVER SUPPORT
      • VPS MANAGEMENT
      • VMWARE SERVER SUPPORT
      • PLESK SERVER SUPPORT
  • MANAGED IT SERVICES
    • Managed Cloud
      • GOOGLE CLOUD
      • AZURE CONSULTING
      • VIRTUALIZATION
      • AWS CONSULTING
      • OFFICE 365 MIGRATION
    • Managed Hosting
    • Professional Services
      • 365 X 24 X 7 NOC
      • LINUX ADMINISTRATION
      • PATCHING
      • HIGH AVAILABILITY SOLUTIONS
      • WINDOWS ADMINISTRATION
      • NETWORK ADMINISTRATION
      • APPLICATION SERVER MANAGEMENT
    • White Label Managed IT Services
  • ABOUT US
    • DATA CENTERS
    • LOCATIONS
      • New York City
      • Atlanta
      • Dallas
      • Houston
      • Chicago
      • Orlando
      • Calgary
      • Sydney
      • London
      • Dublin
      • Singapore
    • OUR PARTNERS
    • FAQS
    • AFFILIATES
    • CAREERS
    • CONTACT US
    • BLOG
      • Write For Us
Menu
  • HOME
  • SERVERS
    • DEDICATED SERVERS
    • VPS SERVERS
    • COLOCATION SERVICES
    • Email & Security
      • Email And Collaboration
        • Microsoft Office 365 – India
        • Microsoft Office 365 – US & Canada
        • Google G Suite – US & Canada
        • Google G Suite – India
      • SSL Certificates
  • SERVER MANAGEMENT
    • MICROSOFT SERVER SUPPORT
      • EXCHANGE SERVER SUPPORT
      • WINDOWS SERVER SUPPORT
      • MS SQL SERVER SUPPORT
      • MS IIS SERVER SUPPORT
      • MS SHAREPOINT SERVER SUPPORT
    • LINUX SERVER SUPPORT
      • CPANEL SERVER SUPPORT
      • DIRECTADMIN SERVER SUPPORT
      • VPS MANAGEMENT
      • VMWARE SERVER SUPPORT
      • PLESK SERVER SUPPORT
  • MANAGED IT SERVICES
    • Managed Cloud
      • GOOGLE CLOUD
      • AZURE CONSULTING
      • VIRTUALIZATION
      • AWS CONSULTING
      • OFFICE 365 MIGRATION
    • Managed Hosting
    • Professional Services
      • 365 X 24 X 7 NOC
      • LINUX ADMINISTRATION
      • PATCHING
      • HIGH AVAILABILITY SOLUTIONS
      • WINDOWS ADMINISTRATION
      • NETWORK ADMINISTRATION
      • APPLICATION SERVER MANAGEMENT
    • White Label Managed IT Services
  • ABOUT US
    • DATA CENTERS
    • LOCATIONS
      • New York City
      • Atlanta
      • Dallas
      • Houston
      • Chicago
      • Orlando
      • Calgary
      • Sydney
      • London
      • Dublin
      • Singapore
    • OUR PARTNERS
    • FAQS
    • AFFILIATES
    • CAREERS
    • CONTACT US
    • BLOG
      • Write For Us

In this post we will understand how to display files and directories in CentOS using ‘ ls ’ command in terminal. CentOS is a Community Enterprise operating system which mainly focuses on the server. It is a part of Linux Operating System Distribution, and it is free to use. First, open the terminal.

Total Time Needed: 30 minutes

Required Tools:

CentOS Installed

Steps to Files and Directories (Is) in CentOS

Step 1 : List Files and Directories
Type the command ls in the terminal and press enter key to see files and directories in alphabetical order.
,
Step 2 : List Files and Directories in Reverse Alphabetical Order
Type the command ls –r and press enter key to list files and Directories in reverse alphabetical order
ZVXsdbfsvs
Step 3 :List Hidden Files
Type the command ls -a and press enter to see hidden files. Hidden files are the files that start with a dot(.) before the file name.
ZDbfdmktu
Step 4 : List Files and Directories with Permissions and Details
Type the command ls - l and press enter to list files and directories with details. You will be able to see permissions, User, Group, Size, Date modified, the file name in respective order.
ZXBdgmgfh
Step 5: List Files and Directories with Clear Sizes in KB or MB or Bytes
Type the command ls - lh, which is the same as before except that it specifies sizes in a clearer way I.e. if the file is KB it shows in KB.
Step 6: List Files and Directories
List files and directories in order from Newest to Oldest.- Type the command ls – t and press Enter
sDbgsfmugl
List files and directories in order from newest to oldest, along with details.-- Type the command ls – lt and press Enter.
Conclusion:
Hence to understand Files and Directories (ls) in CentOS follow these steps. If you have any doubt please contact Medha Hosting. Our Linux professionals would help you to get eh most out of your Linux infrastructure
Read Here: What Is Change Directories Commands In CentOS?

Need help? Call our support team 24/7 at +1 646-775-2855

Medha Hosting Logo

We are Medha hosting, Fast Growing Business IT Services Company with most talented people.

USA: 447 Broadway,2nd FL #196New York, NY 10013.
Phone +1 646 775 2855

India: #74, 7th Cross, Kirshna Garden Incity Layout, Chikka kammanahalli, Banneraghatta Road, Bangalore 560083
Phone:+91 93536 44646

Servers and Cloud
  • Dedicated Servers
  • VPS hosting
  • cPanel servers
  • Office 365
  • G Suite
Services
  • Server support
  • Managed IT services
  • Data Center migration
  • Application management
  • Cloud management
Get Started
  • Client area
  • Resources
  • Tutorials
  • Affiliates
  • Docs
About
  • About Medha Hosting
  • Customer stories
  • Blog
  • Careers
  • Brand Assets
Facebook-f Twitter Youtube Linkedin-in Rss
Payment Button

© 2019 All rights reserved

  • Terms of Service |
  • Privacy Policy |
  • AUP |
  • Service Level Agreement