DEV Community

Cover image for Terminal kommandalari | PART 3
sardorbek095
sardorbek095

Posted on • Edited on

2 1

Terminal kommandalari | PART 3

date

  • echo $(date '+%d-%m-%Y') - ushbu komanda hozirgi sanani (dd-mm-yy) formatda shu papkani terminalda chiqradi
  • mkdir $(date '+%d-%m-%Y') - ushbu komanda orqali bugungi sana nomi bilan papka yaratiladi

code

  • code main.cpp - bu komanda joriy papka ichida main.cpp degan fayl (yo'q bo'lsa) yaratib uni VsCode ichida ochadi
  • code . - joriy papkani VsCode dasturida workspace (ishchi maydon) sifatida ochadi

g++

  • bu komanda C++ kodlarni kompilyatsiya qilish uchun ishlatiladi.
  • g++ main.cpp- bu komanda orqali joriy papkadagi main.cpp nomli C++ kod faylni kompilatsiya qiladi va by default a.out nomli dasturiy fayl yaratadi.

g++ main.cpp dastur` komandasi main.cpp faylni kompilyatsiya qilib natijani dastur nomli faylga saqlaydi.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay