SyntaxStudy
Sign Up
Linux / Bash Introduction to Linux & Bash
Linux / Bash Beginner 7 min read

Introduction to Linux & Bash

Linux is an open-source operating system kernel used in servers, cloud computing, Android phones, and embedded systems. Bash (Bourne Again Shell) is the most common command-line interface for Linux systems.

As a developer, knowing Linux commands is essential for server management, DevOps, and daily development work.

Example
# Who am I?
whoami

# Where am I?
pwd  # print working directory

# List files
ls           # basic list
ls -la       # detailed list with hidden files
ls -lh       # human-readable file sizes

# Navigate
cd /home/user     # absolute path
cd Documents      # relative path
cd ..             # go up one level
cd ~              # go to home directory
cd -              # go to previous directory

# System info
uname -a      # kernel info
hostname      # computer name
date          # current date/time
cal           # calendar
uptime        # how long the system has been running