πŸš€
πŸ–₯️ Terminal Basics

Linux & Terminal Commands

A shell is a command-line interface which allows to perform certain tasks using command

Basic Commands

  • cd β†’ change directory 800
    • cd .. β†’ goes back a single directory 800
  • mkdir β†’ make new folder 800
    • mkdir -p β†’ makes directories and sub-directories too. 800
  • touch β†’ creates a new file 800
  • ls/dir β†’ lists all the files in the current directory 800 800
    • ls -a β†’ displays all the hidden files 800
    • ls -l β†’ shows more information like size, date about the files in working directory. 800
    • ls -R β†’ show files, directories and sub-directories as well. 800
  • xdg-open / open β†’ opens the graphical interface of the present working directory.
  • pwd β†’ Print Working Directory 800
  • cp β†’ creates a copy of a file or a folder 800
    • cp -R β†’ copies directories and also the sub-directories 800
  • mv β†’ moves files 800 If names of two files are given, then the file gets renamed.
  • rm β†’ removes only files permanently. 800
    • rm -R β†’ removes directories permanently. 800
    • rm -rf β†’ force remove of files or directories. 800
  • sudo β†’ Super User Do gives system administrator privileges. 800 sudo apt update && sudo apt upgrade is used to download and install updates.

Β© 2024 Driptanil Datta.All rights reserved

Made with Love ❀️

Last updated on Thu Mar 12 2026