<picture><source type="image/webp" srcSet="/static/927f3c1f1737834cdbd785e1efd697c0/94e0c/quedemy-text-logo-rect-violet.webp 45w,/static/927f3c1f1737834cdbd785e1efd697c0/c07b1/quedemy-text-logo-rect-violet.webp 90w,/static/927f3c1f1737834cdbd785e1efd697c0/a810a/quedemy-text-logo-rect-violet.webp 180w,/static/927f3c1f1737834cdbd785e1efd697c0/1ff69/quedemy-text-logo-rect-violet.webp 360w" sizes="(min-width: 180px) 180px, 100vw"/><img data-gatsby-image-ssr="" data-main-image="" style="opacity:0" sizes="(min-width: 180px) 180px, 100vw" decoding="async" loading="lazy" src="/static/927f3c1f1737834cdbd785e1efd697c0/a4dc7/quedemy-text-logo-rect-violet.png" srcSet="/static/927f3c1f1737834cdbd785e1efd697c0/201a0/quedemy-text-logo-rect-violet.png 45w,/static/927f3c1f1737834cdbd785e1efd697c0/93883/quedemy-text-logo-rect-violet.png 90w,/static/927f3c1f1737834cdbd785e1efd697c0/a4dc7/quedemy-text-logo-rect-violet.png 180w,/static/927f3c1f1737834cdbd785e1efd697c0/4d66d/quedemy-text-logo-rect-violet.png 360w" alt="quedemy-logo"/></picture>
Quedemy - HomeQuedemy - Home
Blogs

Linux Basic Commands (2024)

Learn Node.js unit testing with Jest, using mocking, snapshots, and best practices to ensure reliable and efficient application performance.

May 20, 202520 min read
Linux Basic Commands (2024)

Table of Contents

  • Pre-requisites

In this article, you will learn about the beginner friendly and frequently used commands of Linux Operating Systems. Here, you will be working with GitBash. However, you can use any LINUX based terminal.

Here are the ways to work with linux based terminal

Pre-requisites

  • Gitbash downloaded

Create a folder quedemy-workspace. Then two other folder and one text file:

folder-structure

Navigating and Managing Files

  1. pwd: You can use the pwd command to get the present working directory. pwd stands for Print Working Directory.

    $ pwd
    # Output
    /p/quedemy-workspace
  2. ls: Get the list of contents inside current working directory /p/quedemy-workspace

    list-contents-of-current-directory
  3. cd:

  4. cat:

  5. touch:

  6. cp:

  7. mv:

  8. mkdir:

  9. rmdir:

  10. rm:

  11. locate:

  12. find:

  13. greep:

  14. sudo:

  15. df:

  16. du:

  17. head:

  18. tail:

  19. diff:

  20. tar:

  21. chmod:

  22. chown:

  23. ps:

  24. top:

  25. kill:

  26. ping:

  27. wget:

  28. uname:

  29. history:

  30. man:

  31. echo:

  32. hostname:

  33. useradd:

  34. userdel:

  35. file:

  36. wc:

  37. whoami:

  38. ip:

prev post

Table of Contents

  • Pre-requisites