DEV Community

Mohira21
Mohira21

Posted on

3

Terminal komandalar | Part 2

cd ~

  • home papkaga qaytadi

cd ~/papka nomi

  • har qanday papkadan shu papkaga o'tadi

open . yoki start .

  • file explorerda shu papkani ochadi

mkdir

mkdir papka-nomi yoki mkdir 'papka-nomi'

  • yangi papka ochadi
  • agar papka nomi probel bilan yozilsa alohida-alohida papka ochadi

echo salom >> salom.txt

  • joriy papkada text fayl ochadi

echo "bugun havo yaxshi" >> salom.txt

  • tekstga yangi so'z/gap qo'shiladi

rm (remove)

rm salom.txt

  • har qanday faylni o'chiradi (papkani emas)

rm -r (recursion)

  • har qanday papka va uning ichidagi barcha narsani o'chiradi

rm -rf (force)

  • o'chmayotgan faylni yoki pakani majburlab o'chirib yuborsa bo'ladi ! Bu komanda orqali o'chirilgan fayl va papkalar korzinkaga tushmaydi!

date

  • bu komanda hozirgi vaqtni chop etish uchun ishlatiladi

date

  • Sat Apr 24 10:11:25 + 04 2022 ko'rinishida sanani chop etadi

date '+%d-%m-%Y'

  • sanani dd-mm-yyyy formatda chop etadi 24-0 4-2022

date '+%d/%m/%Y'

  • 24/04/2022 ni chop etadi

mkdir $(date)

  • bugungi sana bilan papka ochadi (faqat sana,oy,yil,... alohida alohida papka bo'lib ochiladi)

mkdir $(date '+%d/%m/%Y')

  • bugungi sana bilan paka yaratadi 24/04/2022 ko'rinishida

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 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