pwd

Show your current folder, the saved ~ base and the lil-terminal installation directory.

FilesVersion 1.1.5Stable
lil-terminal

Overview

Before working with files, it helps to know exactly where you are. pwd prints the current path without moving you. pwd ~ shows your saved working base, while pwd -b shows the fixed directory containing lil.php. Use pwd -s to make the current folder your new ~ base.

Know which directory and root you are using

Imagine entering a project folder that you will use repeatedly. Run pwd -s: from then on, ~tmp starts at that folder even after you navigate elsewhere. Use pwd to answer “where am I?” and cd to answer “where should I go?”.

Syntax

lil-terminal
pwd [~|\|-b|-s]

Reference

pwd

show the current directory

pwd ~

show the selected directory used by ~ paths

pwd -b | pwd \

show the directory containing lil.php, used by \ paths

pwd -s | pwd set

save the current directory as the ~ base (both forms)

Notes

pwd set changes only the selected ~ base. The \ root always remains the directory containing lil.php. Path forms such as ~tmp and \tmp therefore resolve from two different stable locations.

pwd -s and pwd set do exactly the same thing: save the current directory as the ~ base.

Interactive sandbox preview

Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.

Show the current directory

Install and manage

Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.

Base and Minimum are two packages of the same current module release, not separate command versions.

Base package

Install the complete package with local command reference and every published mode.

install pwd
Minimum package

Install the reduced package. Local reference is omitted; help <cmd> -i opens the current server reference.

install pwd -m
Exact public version

Install exactly this published version.

install pwd -v 1.1.5
Check or update

Ask upgrade to check compatibility and replace the installed block only when needed.

upgrade pwd
Remove module

Remove the extension block while leaving the core and unrelated modules intact.

install pwd -u

Examples

Examples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.

Show the current directory
pwd | cd \sandbox | pwd | pwd -s | pwd ~
/home/account/public_html

/home/account/public_html/sandbox

/home/account/public_html/sandbox

/home/account/public_html/sandbox
Show the selected directory used by ~ paths
pwd ~
sandbox/workspace

~ points to the working base saved with pwd -s, so paths such as ~tmp stay short even when the real directory is deeper.

Show the directory containing lil.php, used by \ paths
pwd -b
sandbox

pwd -b and pwd \ refer to the directory that contains lil.php; this root is independent from the working base selected with pwd -s.

Save the current directory as the ~ base (both forms)
pwd -s
base  sandbox

After pwd -s, ~ resolves to the current directory until you choose another working base.

Pwd · -x
pwd -x
?
Save the current directory as the ~ base (both forms)
pwd set
base  sandbox

After pwd -s, ~ resolves to the current directory until you choose another working base.

Show the directory containing lil.php, used by \ paths
pwd \
sandbox

pwd -b and pwd \ refer to the directory that contains lil.php; this root is independent from the working base selected with pwd -s.

Related documentation

Current public release

v1.1.52026-10-31

Clarified pwd base selection

pwd -s and pwd set both save the current directory as the base for ~ paths.