Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

List Files in PowerShell: Get-ChildItem Mastered

List Files in PowerShell: Get-ChildItem Mastered Get-ChildItem shows you files and folders. Learn the flags that let you see exactly what you're looking for. How It Works Get-ChildItem (or ls/dir) is your file explorer from…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




List Files in PowerShell: Get-ChildItem Mastered



Get-ChildItem shows you files and folders. Learn the flags that let you see exactly what you're looking for.






How It Works



Get-ChildItem (or ls/dir) is your file explorer from the command line. It shows you what's in a folder, but it has options to filter, hide, and sort files different ways.



By default, it shows files and folders (except hidden ones). With options, you control exactly what appears.






Code Examples






Basic Listing






# See all files and folders in current location
Get-ChildItem

# Shows:
# Mode LastWriteTime Length Name
# ---- ------------- ------ ----
# d---- 3/20/2026 10:15 AM Documents
# -a--- 3/18/2026 2:45 PM 4521 notes.txt









Show Only Files






# Hide folders, show files only
Get-ChildItem -File

# Show only folders
Get-ChildItem -Directory









Filter by Type






# Show only .txt files
Get-ChildItem -Filter "*.txt"

# Show only .xlsx files
Get-ChildItem -Filter "*.xlsx"

# Show all .log files in subfolders too
Get-ChildItem -Filter "*.log" -Recurse









Sort by Date or Size






# Show newest files first
Get-ChildItem | Sort-Object LastWriteTime -Descending

# Show largest files first
Get-ChildItem -File | Sort-Object Length -Descending









Most Used Options





  • -File - Show only files, hide directories


  • -Directory - Show only folders, hide files


  • -Filter '*.txt' - Show only files matching the pattern


  • -Recurse - Look in subfolders too (use with caution on big directories)


  • -Force - Show hidden files that Windows normally hides






The Trick: Power Usage



Find your biggest files: Use this to clean up disk space by finding what takes up room:




Get-ChildItem -File | Sort-Object Length -Descending | Select-Object Name, Length | Select-Object -First 10






This shows your 10 largest files, biggest to smallest. Great for finding what's eating your disk!






Learn It Through Practice



Stop reading and start practicing right now:



👉 Practice on your browser



The interactive environment lets you type these commands and see real results immediately.






Next in PowerShell for Beginners



This is part of the PowerShell for Beginners series:





  1. Getting Started - Your first commands


  2. Command Discovery - Find what exists


  3. Getting Help - Understand commands


  4. Working with Files - Copy, move, delete


  5. Filtering Data - Where-Object and Select-Object


  6. Pipelines - Chain commands together






Related Resources








Summary



You now understand:




  • How this command works

  • The most common ways to use it

  • One powerful trick to level up

  • Where to practice hands-on



Practice these examples until they feel natural. Then tackle the next command in the series.






Ready to practice? Head to the interactive environment and try these commands yourself. That's how it sticks!



What PowerShell commands confuse you? Drop it in the comments!

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten List Files in PowerShell: Get-ChildItem Mastered

Thematisch verwandte Begriffe: List, Files, PowerShell, GetChildItem · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94494 | jshERP through 3.6 contains a tenant isolation bypass vulnerability that…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick