---
title: 'Linux: Codezeilen nach Programmiersprache mit cloc zählen'
url: 'https://patrik.kernstock.net/blog/linux-codezeilen-nach-programmiersprache-mit-cloc-zaehlen'
markdown: 'https://patrik.kernstock.net/blog/linux-codezeilen-nach-programmiersprache-mit-cloc-zaehlen.md'
date: '2013-01-26'
description: 'cloc ist ein sehr hilfreiches Werkzeug zum zählen der Codezeilen je nach Programmiersprache. Das Tool ist einfach auszuführen und gibt danach eine Auflistung in Form einer Tabelle zurück. Wie eine Ausgabe aussieht, könnt ihr am Bild oben sehen. Installation apt-get install cloc Ausführen cloc /var…'
taxonomy:
  category:
    - Linux
    - 'Shell & System'
  tag:
    - cloc
    - QuickTip
---

# [Linux: Codezeilen nach Programmiersprache mit cloc zählen](https://patrik.kernstock.net/blog/linux-codezeilen-nach-programmiersprache-mit-cloc-zaehlen)

   January 26, 2013  (updated March 17, 2013)   1 min 

   [Linux](https://patrik.kernstock.net/category:Linux) [Shell & System](https://patrik.kernstock.net/category:Shell%20%26%20System)    [cloc](https://patrik.kernstock.net/tag:cloc) [QuickTip](https://patrik.kernstock.net/tag:QuickTip)  

 Hinweis

Dieser Artikel ist über 13 Jahr(e) alt – Inhalte könnten veraltet sein.

 ![Linux: Codezeilen nach Programmiersprache mit cloc zählen](https://patrik.kernstock.net/images/c/l/o/c/-/cloc-29d2cac6.png?g-b3a1b014 "Linux: Codezeilen nach Programmiersprache mit cloc zählen") 

[![cloc](https://patrik.kernstock.net/user/pages/01.blog/2013-01-26-linux-codezeilen-nach-programmiersprache-mit-cloc-zaehlen/cloc.png?g-b3a1b014)](https://patrik.kernstock.net/user/pages/01.blog/2013-01-26-linux-codezeilen-nach-programmiersprache-mit-cloc-zaehlen/cloc.png?g-b3a1b014)

**cloc** ist ein sehr hilfreiches Werkzeug zum zählen der Codezeilen je nach Programmiersprache. Das Tool ist einfach auszuführen und gibt danach eine Auflistung in Form einer Tabelle zurück. Wie eine Ausgabe aussieht, könnt ihr am Bild oben sehen.

**Installation**

`apt-get install cloc`

**Ausführen**

`cloc /var/www/*`

##     Comments    

 Sort by: 

Loading comments...

---

## Navigation

- Parent: [Blog](https://patrik.kernstock.net/index.md)
- Previous: [Linux: PHP5 Sessions zugunsten der Performance im Arbeitsspeicher ablegen](https://patrik.kernstock.net/blog/linux-php5-sessions-zugunsten-der-performance-im-arbeitsspeicher-ablegen.md)
- Next: [Linux: Dateien und Ordner zählen](https://patrik.kernstock.net/blog/linux-dateien-und-ordner-zaehlen.md)
