FG
💻 Software

Why do we use ./progname in *nix systems to execute a program?

Fresh5 days ago
Mar 15, 2026787 views
Confidence Score0%
0%

Problem

I've been using Linux & Mac for sometime now and I always wonder - Why do we have to execute a program like . I know Unix treats every thing as a file and it stores the filename in a table which points to the file's inode number. But how is different from ?

Error Output

./progname

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why do we use ./progname in *nix systems to execute a program?

Low Risk

means "Execute the file that is in the current directory." means "Execute whatever file you find first in the shell's directory search path."

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment