Linux Shell Tutorial

Welcome to the Linux Shell Tutorial!

Type commands and press Enter to execute.

user@shell:~$ _

Tutorial

Basic Commands

  • ls - List files and directories.
  • pwd - Print working directory.
  • cd <directory> - Change directory. Example: cd Documents
  • mkdir <directory> - Make directory. Example: mkdir my_folder
  • rmdir <directory> - Remove directory. Example: rmdir my_folder
  • touch <file> - Create an empty file. Example: touch my_file.txt
  • rm <file> - Remove a file. Example: rm my_file.txt
  • echo <text> - Print text to the console. Example: echo "Hello, world!"

Navigation

  • cd .. - Go up one directory level.
  • cd / - Go to the root directory.
  • cd ~ - Go to the home directory.

Permissions (Simplified)

  • (This is beyond the scope of this basic tutorial, but essential for real Linux systems.)