DEV Community

Mohira21
Mohira21

Posted on • Updated on

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)