Linux basic commands for navigation

From Pulsed Media Wiki
Revision as of 17:19, 17 April 2025 by Gallogeta (talk | contribs) (Created page with "'''pwd''' --Print Working Directory. Shows you the current directory you are in. '''ls'''  --List. Displays the files and directories in the current directory. '''ls -l'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

pwd --Print Working Directory. Shows you the current directory you are in.

ls  --List. Displays the files and directories in the current directory.

ls -l --Lists files and directories with more details (permissions, owner, size, date).

ls -a --Lists all files and directories, including hidden ones (those starting with a .).

cd directory_name --Change Directory. Moves you into the specified directory.

cd .. --Moves you one directory up.

cd ~ --Returns you to your home directory.

./command --Executes a file named command in the current directory.