Basic Terminal Commands

Opening the Terminal

Essential Commands

Navigation

File Operations

Viewing Files

System Information

Help and Manual

Command Structure

Most commands follow this pattern: command [options] [arguments]

Examples: - ls -la /home/user - mkdir -p projects/rails_app

Tab Completion

Use the Tab key for auto-completion of commands, file names, and paths.

Command History

Practice Exercises

  1. Navigate to your home directory.
  2. List the contents of the current directory.
  3. Create a new directory called "practice".
  4. Inside "practice", create a file called "hello.txt".
  5. Write "Hello, Linux!" to the file using echo "Hello, Linux!" > hello.txt.
  6. View the contents of the file.
  7. Copy the file to "hello_copy.txt".
  8. Remove the original file.

Next, we'll dive deeper into file and directory management.

Loading