🚀
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 Mon Oct 20 2025