DEV Community

Mathu varshtih
Mathu varshtih

Posted on

2. Linux Commands - Beginner

Essential Linux Terminal Commands

  • ls - List files and folders in the current directory.
  • ls -l - Show detailed file information (sizes, permissions, date modified).
  • ls -a - Show hidden files (files starting with a .).
  • pwd - Show your current directory path (Print Working Directory).
  • cp <source> <destination> - Copy a file.
  • df -h - Display remaining storage disk space in readable format.
  • cat <filename> - Display the full contents of a file on the terminal screen.
  • clear - Clear the current terminal screen output (or press Ctrl + L).
  • whoami - Show the name of the currently logged-in user.
  • history - Show the list of recently executed terminal commands.

Top comments (0)