bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Bash/Basic Commands
Bash•Basic Commands

Bash Commands Overview

Common Bash Commands

Bash commands are how you interact with the operating system and perform tasks.

Common commands

  • ls - List directory contents
  • cd - Change the current directory
  • pwd - Print the current working directory
  • echo - Display a line of text
  • cat - Concatenate and display files
  • cp - Copy files and directories
  • mv - Move or rename files
  • rm - Delete files or folders
  • touch - Create an empty file or update its time
  • mkdir - Create a new folder

All these commands and more are explained in the following chapters.

Example

Here's an example using some of these commands:

Example

mkdir my_directory
cd my_directory
touch my_file.txt
ls
my_file.txt

Chapter

Back to Basic Commands

Next

Bash ls Command - List Directory Contents

This chapter

Overview
13

Lessons

31m

Read time

1. Bash Commands Overview2. Bash ls Command - List Directory Contents3. Bash cd - Change Directory4. Bash pwd Command - Print Working Directory5. Bash echo Command - Display Text6. Bash cat Command - Concatenate and Display Files7. Bash cp - Copy Files and Directories8. Bash mv Command - Move or Rename Files9. Bash rm Command - Remove Files or Directories10. Bash touch Command - Change File Timestamps11. Bash mkdir Command - Make Directories12. Bash man Command - User Manual13. Bash alias