DEV Community

Jaloliddin Xolmirzayev
Jaloliddin Xolmirzayev

Posted on

Terminal komandalari haqida

Terminal — bu kompyuterning operatsion tizimi bilan matnli buyruqlar orqali muloqot qilish uchun ishlatiladigan vosita.

.NET komandalari

1. dotnet new - yangi loyiha yaratadi:

dotnet new console -n Offline.Bootcamp // Offline.Bootcamp -- loyiha nomi
Enter fullscreen mode Exit fullscreen mode

2. dotnet mkdir - papka yaratadi:

dotnet mkdir Day0 // Day0 -- papka nomi

Enter fullscreen mode Exit fullscreen mode

3. dotnet build - loyihani yig'adi(kompilyatsiya qiladi) va bajarishga tayyorlaydi:

dotnet build
Enter fullscreen mode Exit fullscreen mode

4. dotnet run - loyihani ishga tushuradi:

dotnet run
Enter fullscreen mode Exit fullscreen mode

5. dotnet --version - .NET versiyasini ko'rsatish.

dotnet --version 
Enter fullscreen mode Exit fullscreen mode

6. dotnet sln - Solution bilan ishlash

  • .sln fayllarini boshqarish uchun ishlatiladi.
  • Loyihani solution ga qo'shish:
dotnet sln add project.csproj
Enter fullscreen mode Exit fullscreen mode

7. ls - Fayllarni ko'rsatish

  • Hozirgi papkada yoki berilgan manzilda joylashgan fayllar va papkalarni ko'rsatadi.
ls
Enter fullscreen mode Exit fullscreen mode

8. rm - Fayl yoki papkani o'chirish (Remove)

rm Day0
Enter fullscreen mode Exit fullscreen mode

9. cat - Fayl ichidagi ma'lumotlarni ko'rsatish

  • Fayldagi kontentni terminalda ko'rsatdi
cat Offline.Bootcamp
Enter fullscreen mode Exit fullscreen mode

10. exit - Terminal sessiyasini yakunlash

exit
Enter fullscreen mode Exit fullscreen mode

Bu komandalar yordamida siz .NET muhitida turli vazifalarni bajara olasiz. Har bir komanda o'zining maxsus vazifalariga ega va .NET loyihalari bilan ishlashni osonlashtiradi.

Top comments (0)