Skip to main content
$Training4Linux
  • Learning paths
  • Start here
  • Reference
  • My learning
  1. Home
  2. Shell & Environment Basics

Shell & Environment Basics

The everyday commands every Linux session starts with โ€” navigating, printing, and shaping your shell.

Networking & DNS 6 Mail Servers (Exim, Postfix) 6 File & Directory Management 16 Permissions & Ownership 6 Process & Job Management 6 Package Management 9 User & Group Management 8 System Monitoring & Logs 6 Text Processing & Editors 6 Disk & Storage 6 Systemd & Services 6 Firewall & Security 6 Shell & Environment Basics 8 System & Hardware Info 6 Scheduling & Automation 4 Archiving & Compression 6 Remote Access & File Transfer 5

8 commands in this section.

alias Beginner

Create a shortcut for a longer command.

alias name='command'
cd Beginner

Change the current working directory.

cd [directory]
echo Beginner

Print text or the value of a variable.

echo [options] text
export Intermediate

Set an environment variable for the current shell and its child processes.

export VARIABLE=value
history Beginner

Show previously run commands.

history [options]
man Beginner

Read a command's manual page.

man [section] command
pwd Beginner

Print the current working directory.

pwd
which Beginner

Show the full path of a command that would run.

which command
$Training4Linux

Build practical Linux confidence, one useful skill at a time. Structured lessons, your own lab and a reference that stays close.

Build your skills

  • Learning paths
  • Set up your lab
  • My learning & privacy

Find an answer

  • Command reference
  • Browse distributions
  • Search lessons & commands
  • About Training4Linux
© 2026 Training4Linux.co.uk ยท Learn with purpose. Practise with care.