DEV Community

Sardorpm
Sardorpm

Posted on

TERMINAL komandalari mavzusiga oid | QUIZ GAME |

QUIZ GAME
TERMINALga oid savollarga javoblar! Lets goo

1.

TERMINAL da bugungi sana nomi bilan (dd-mm-yyyy) formatida papka yaratish komandasini kiriting!

mkdir $(date '+%d-%m-%Y')
Enter fullscreen mode Exit fullscreen mode

2.

Siz turgan papkadagi barcha (yashirinlarini ham) fayllarni chop etuvchi komandani kiriting!

ls -a
Enter fullscreen mode Exit fullscreen mode

3.

Siz turgan papka nomi ni ko'rsatuvchi komandani kiriting!

pwd
Enter fullscreen mode Exit fullscreen mode

4.

Siz turgan papkadagi hamma narsani ekranga chop etuvchi komandani kiriting!

ls
Enter fullscreen mode Exit fullscreen mode

5.

1 ta papka ort ga qaytish komandasini kiriting!

cd ..
Enter fullscreen mode Exit fullscreen mode

6.

Bugungi sanani (dd-mm-YY) ko'rinishda ekranga chop qiluvchi komandani kiriting!

echo $(date '+%d-%m-%Y')
Enter fullscreen mode Exit fullscreen mode

7.

Siz $HOME papkasida turibsiz, shu papkadan chiqmasdan Downloads papkasidagi keraksiz.txt faylni o'chirish komandasini kiriting!

rm -rf ~/Downloads/keraksiz.txt
Enter fullscreen mode Exit fullscreen mode

8.

Joriy papkadagi main.cpp nomli kodni kompilatsiya qilish komandasini kiriting!

g++ main.cpp -o dastur
Enter fullscreen mode Exit fullscreen mode

9.

Joriy papkadagi main.cpp nomli code ni kompilatsiya qilgach a.out nomli by default faylni ishga tushirish komandasini kiriting!

g++ main.cpp
Enter fullscreen mode Exit fullscreen mode

10.

$HOME papkasiga qanday qaytish komadasini kiriting!

cd ~
Enter fullscreen mode Exit fullscreen mode

12.

Joriy papkadagi main.cpp faylni kompilatsiya qilib natijani dastur nomli faylga saqlaydigan komandani kiriting!

g++ main.cpp -o dastur
Enter fullscreen mode Exit fullscreen mode

13.

Joriy papkani VSCode daturida workspace (ishchi maydon) sifatida ochadigan komandani kiriting!

code .
Enter fullscreen mode Exit fullscreen mode

14.

a.out ga saqlangan kodni ishga tushiruvchi komandani kiriting!

./a.out
Enter fullscreen mode Exit fullscreen mode

15.

Joriy papkani o'zgartirib sizni boshqa manzilga olib boradigan komandani kiriting!

cd
Enter fullscreen mode Exit fullscreen mode

Xammaga raxmat xozircha shular :)

Top comments (1)

Collapse
 
sardorbek095 profile image
sardorbek095

zo'r Alloh baraka bersin