Follow

RT: @nixcraft

Let us talk about various ways to list files on your Linux and Unix box.

The usual:
ls
dir

Other methods
echo *
printf "%s\n" *
find /dir/ -ls
du -a -d 1 | awk '{print $2}'
stat -c %n *
grep -l '.*' ./*
du -sh *
awk '{print FILENAME;nextfile}' *

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!