List only regular file names in a directory

How to List only regular file names in a directory on Linux and Windows

Listing regular files in a directory without including . and .. files.


  • On Linux

    Solution 1:$ ls -p | grep -v /
    Solution 2: $ ls -F | grep -v ‘[/@=|]’
    Solution 3: $for list in `ls` ; do ls -ld $list | grep -v ^d > /dev/null && echo $list ; done ;
    Solution4:$ for list in `ls` ; do ls -ld $list | grep ^d > /dev/null || echo $list ; done ;
    Solution5 (exclude sym links):$ for list in `ls` ; do ls -ld $list | grep -v ^l > /dev/null && echo $list ; done ;


  • On Windows

    Solution 1: dir /a-d /b >..\File_List.txt




The Cloud is the future: The AWS Certified Solutions Architect – Associate Average salary is $149,446/year. Get Certified Now with the apps below:


AWS Cert Solution Architect Associate PRO: SAA-C02
AWS Cert Solution Architect Associate PRO: SAA-C02
Developer:
Etienne D. Noumen
Price:
$5.49

  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot


Solution Architect PRO
Solution Architect PRO
Developer:
‪Etienne Noumen‬
Price:
$5.39

  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot



Unknown app
Unknown app
Developer:
Unknown
Price:
To be announced


AWS Certified Cloud Practitioner Mock Exams Pro
AWS Certified Cloud Practitioner Mock Exams Pro
Developer:
‪Etienne Noumen‬
Price:
$5.39

  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot





AWS Certified Developer Associate Exam Prep
AWS Certified Developer Associate Exam Prep
Developer:
‪Etienne Noumen‬
Price:
Free

  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot


Djamga PRO: Pick Up Games, Health and Fitness Calculator
Djamga PRO: Pick Up Games, Health and Fitness Calculator
Developer:
‪Etienne Noumen‬
Price:
$3.49

  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot


Get 20% off Google Workspace (including Google Meet) Business Plan (Americas): L9H4RENHLPH76FV
Get 20% off Google Google Workspace (including Google Meet) Standard Plan with the following codes: 96DRHDRA9J7GTN6
Contact us for more codes

taimienphi.vn