DEV Community

Mohira21
Mohira21

Posted on • Edited on

4 3

Terminal komandalar | Part 1

pwd(print working directory)

  • joriy papka manzilini chop etadi.
/home/runner/Terminal/FOUNDATION
Enter fullscreen mode Exit fullscreen mode

clear

  • terminaldagi hamma textni tozalab yuboradi.

ls

  • list of files in terminal
main.cpp Makefile replit.nix
Enter fullscreen mode Exit fullscreen mode

ls -a

  • list of all files (with hidden files)
.  ..  .cache  .ccls-cache  main.cpp  Makefile  .replit  replit.nix
Enter fullscreen mode Exit fullscreen mode

mkdir [directory]

mkdir FOUNDATION
Enter fullscreen mode Exit fullscreen mode

cd(current directory)

  • changing pwd
cd FOUNDATION
Enter fullscreen mode Exit fullscreen mode

cd ..

  • bitta orqaga qaytish
cd ..
Enter fullscreen mode Exit fullscreen mode

cat [file name]

  • papkadagi text filelarni ko'rsatadi
#include <iostream>

int main() {
  std::cout << "Hello World!\n";
} 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay