Sobes.tech
Junior — Middle

Can you name the main commands for working in the Linux command line?

sobes.tech AI

Answer from AI

Basic commands for working in the Linux command line:

  • ls — display a list of files and folders in the current directory.
  • cd — change the current directory.
  • pwd — show the full path of the current directory.
  • cp — copy files or folders.
  • mv — move or rename files.
  • rm — delete files.
  • mkdir — create a new directory.
  • rmdir — delete an empty directory.
  • cat — display the contents of a file.
  • grep — search within file contents.
  • chmod — change file permissions.
  • ps — view running processes.
  • kill — terminate a process by PID.

These commands are fundamental for navigation and file management in Linux.