Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Linux Commands / IT Support Guides

Navigate Linux paths with pwd and ls

A command that works in one terminal can fail in another because the working directory differs. Establish the actual path before reading or changing files.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

pwd
ls -lah

How to read the result

pwd identifies the current working directory. The long listing shows ownership, permissions and hidden entries; human-readable sizes help distinguish small configuration files from large artifacts.

What to do next

Compare the directory with the application's documented path. Use absolute paths in support notes so another engineer can repeat the check without inheriting your shell state.

Before you make a change

A symlink can make a displayed path differ from the physical location. Confirm the target before any later write or deletion.

Source & further reading

GNU Coreutils — pwd invocation

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles